From 5fb1d2236960a5048a3420d0e7a7e9bf30897279 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 11 五月 2023 18:20:33 +0800 Subject: [PATCH] 2023-05-11 --- src/index.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index b4541b2..090fd3e 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