Skip to content

Commit 36ad338

Browse files
committed
http 以外暂不处理
1 parent 408f0e3 commit 36ad338

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/app/service/service_worker/gm_api

‎src/app/service/service_worker/gm_api/gm_api.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ export default class GMApi {
809809
}
810810
let hasOriginPermission = false;
811811
let originPattern = "";
812-
if (!url.origin || url.origin === "null") {
812+
if (!url.origin || url.origin === "null" || !url.protocol || !url.protocol.startsWith("http")) {
813813
hasOriginPermission = true; // TBC
814814
} else {
815815
originPattern = `${url.origin}/*`;

0 commit comments

Comments
 (0)