From 8d7c3eed8bdac1e77c8de90a3227d801708c358e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 15 五月 2023 21:12:56 +0800 Subject: [PATCH] 2023-05-15 --- src/index.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index 36fae4b..72a875d 100644 --- a/src/index.js +++ b/src/index.js @@ -147,6 +147,10 @@ } else if (!/webapi\/dostars$/ig.test(systemApi)) { systemApi = systemApi.replace(/\/?$/, '/webapi/dostars') } + + if (/^https/.test(window.location.protocol) && /^http:/.test(systemApi) && !GLOB.transfer) { + systemApi = systemApi.replace(/^http:/, 'https:') + } GLOB.mainSystemApi = systemApi } -- Gitblit v1.8.0