Skip to content

Commit

Permalink
Try denying all fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Erudition committed Sep 18, 2023
1 parent c8fcf20 commit 7c47070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elm/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ globalLayout model replica innerStuff =

--, menuItemHref "Test Marvin Sync" "sync-outline" "?sync=marvin"
, menuItemHref "Reload App" "sync-outline" "index.html"
, menuItemHref "Service worker js file" "sync-outline" "https://erudition.github.io/minder-preview/Erudition/Minder/branch/master/sw2.js"
, menuItemHref "Service worker js file" "sync-outline" "https://erudition.github.io/minder-preview/Erudition/Minder/branch/master/sw.js"
, menuItemHref "Installed branch" "sync-outline" "https://localhost/fallback.html"
, menuItemHref "Redirect" "sync-outline" "https://localhost/"
, menuItemHref "Master branch" "sync-outline" "https://erudition.github.io/minder-preview/Erudition/Minder/branch/master/"
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
workbox: {
//additionalManifestEntries: ["fallback.html"], // TODO test if this works
navigateFallback: "error.html",
navigateFallbackDenylist: [/sw2\.js/],
navigateFallbackDenylist: [new RegExp(".*")],
globPatterns: ['**/*.{html,css,ico,png,svg}'] // TODO removed js so capacitor plugins can work
},
outDir: "../dist", // weird it's not default, it looks for webapp files to cache here
Expand Down

0 comments on commit 7c47070

Please sign in to comment.