diff --git a/src/main.ts b/src/main.ts index f7e48ba..54c7af4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -75,7 +75,7 @@ declare global { window.$cocogoat = c window.$cocogoat.onload && window.$cocogoat.onload() /// #if !SINGLEFILE - loadSW() + window.$cocogoat.sw = loadSW() /// #endif })() diff --git a/src/views/Options/Env.vue b/src/views/Options/Env.vue index 6d9ff6b..b38648a 100644 --- a/src/views/Options/Env.vue +++ b/src/views/Options/Env.vue @@ -61,19 +61,56 @@
+