瀏覽代碼

feature: clear base.html (#13157)

factor2
Aaron van Meerten 2 年之前
父節點
當前提交
0f4af44220
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 1 行新增2 行删除
  1. 0
    1
      base.html
  2. 1
    1
      index.html

+ 0
- 1
base.html 查看文件

1
-<base href="/" />

+ 1
- 1
index.html 查看文件

49
 
49
 
50
             if (shouldRegisterWorker) {
50
             if (shouldRegisterWorker) {
51
                 navigator.serviceWorker
51
                 navigator.serviceWorker
52
-                    .register(window.location.origin + contextRoot(window.location.pathname) + '/pwa-worker.js')
52
+                    .register(window.location.origin + contextRoot(window.location.pathname) + 'pwa-worker.js')
53
                     .then(reg => {
53
                     .then(reg => {
54
                         console.log('Service worker registered.', reg);
54
                         console.log('Service worker registered.', reg);
55
                     })
55
                     })

Loading…
取消
儲存