We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefd8ea commit 2a467e5Copy full SHA for 2a467e5
src/context/request/request-context.js
@@ -40,6 +40,10 @@ class RequestContext {
40
// 示例:"//statics.moonshot.cn/kimi-chat/shared-K0TvIN461soURJCs7nh6uxcQiCM_.04bc3959.async.js"
41
if (requestUrl.startsWith("//")) {
42
requestUrl = "https:" + requestUrl;
43
+ } else if (requestUrl.startsWith("/")) {
44
+ // 兼容省略域名的情况
45
+ // 数据样例:"/logos/2024/moon/december-r4/december.js"
46
+ requestUrl = window.location.origin + requestUrl;
47
}
48
49
const url = new URL(requestUrl);
0 commit comments