Skip to content

Commit

Permalink
remove service-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed Apr 28, 2024
1 parent 85d6519 commit 965bac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/typepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 动作
Expand Down

0 comments on commit 965bac9

Please sign in to comment.