We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16cc899 commit d0061abCopy full SHA for d0061ab
1 file changed
src/app/service/service_worker/script.ts
@@ -394,6 +394,13 @@ export class ScriptService {
394
// 执行更新逻辑
395
update = true;
396
script.selfMetadata = oldScript.selfMetadata;
397
+ // 如果已安装的脚本是由 Subscribe 安装,即使是手动更新也不会影响跟 Subscribe 关联
398
+ if (oldScript.subscribeUrl && oldScript.origin) {
399
+ // origin 和 subscribeUrl 保持不变
400
+ // @downloadURL @updateURL 随脚本最新代码而更新
401
+ script.origin = oldScript.origin;
402
+ script.subscribeUrl = oldScript.subscribeUrl;
403
+ }
404
}
405
if (script.ignoreVersion) script.ignoreVersion = "";
406
if (createtime) {
0 commit comments