mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 15:41:59 +01:00
Try setting serviceWorker to false in plugin to unregister SW
This commit is contained in:
parent
95e4c8302e
commit
1e4febb436
@ -18,7 +18,6 @@ module.exports = {
|
|||||||
// Custom headers
|
// Custom headers
|
||||||
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin:""}],
|
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin:""}],
|
||||||
["link", { rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Open+Sans"}],
|
["link", { rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Open+Sans"}],
|
||||||
["script", {src: "/scripts/remove_service_worker.js"}]
|
|
||||||
],
|
],
|
||||||
|
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
@ -9,8 +9,8 @@ module.exports = [
|
|||||||
[
|
[
|
||||||
"@vuepress/pwa",
|
"@vuepress/pwa",
|
||||||
{
|
{
|
||||||
serviceWorker: true,
|
serviceWorker: false,
|
||||||
updatePopup: true,
|
updatePopup: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
if ("serviceWorker" in navigator) {
|
|
||||||
console.log("Checking for service worker...");
|
|
||||||
navigator.serviceWorker.getRegistrations().then(function (registrations) {
|
|
||||||
if (registrations.length < 1) {
|
|
||||||
console.log("Found no service worker!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
registrations.forEach((registration) => {
|
|
||||||
registration.unregister();
|
|
||||||
console.log("Removed service worker!");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user