From 965bac9a08b387efe04b5d56a8cdf8801d0efa51 Mon Sep 17 00:00:00 2001 From: "KyleBing(MBP14)" Date: Sun, 28 Apr 2024 16:35:13 +0800 Subject: [PATCH] remove service-worker --- js/typepad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/typepad.js b/js/typepad.js index db7370c..7dfb7f4 100755 --- a/js/typepad.js +++ b/js/typepad.js @@ -70,14 +70,14 @@ require(['ArticleType', 'Article', 'Engine', 'Editor'], // 显示历史记录 engine.fetchAllLog(); - // Service Worker +/* Service Worker if ('serviceWorker' in navigator){ navigator.serviceWorker .register('/tools/typepad/typepad-sw.js?v=2.68') .then(()=>{ console.log('Server Worker has registered'); }) - } + }*/ }) document.addEventListener('touchstart', ()=>{}, false); // 取消移动端的 touch 动作