Skip to content

Commit

Permalink
Disable service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Dec 8, 2023
1 parent 9c4bbe8 commit 858cc1d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 70 deletions.
1 change: 0 additions & 1 deletion packages/dashboard/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import VueToast from 'vue-toast-notification'
import 'vue-toast-notification/dist/theme-sugar.css'
import 'sweetalert2/src/sweetalert2.scss'
import axios from 'axios'
import './registerServiceWorker'

require('bootstrap/js/dist/dropdown')
require('bootstrap/js/dist/modal')
Expand Down
33 changes: 0 additions & 33 deletions packages/dashboard/src/registerServiceWorker.js

This file was deleted.

37 changes: 1 addition & 36 deletions packages/dashboard/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1 @@
module.exports = {
pwa: {
name: 'R2 Explorer',
themeColor: '#4DBA87',
background_color: '#ffffff',
display: 'standalone',
msTileColor: '#ffffff',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'white',
shortcuts: [
{
name: 'Email Explorer',
description: 'Navigate your R2 Explorer Emails',
url: '/emails/',
icons: [{ src: '/img/icons/android-chrome-192x192.png', sizes: '192x192' }]
},
{
name: 'R2 Explorer',
description: 'Navigate your R2 Explorer Files',
url: '/storage',
icons: [{ src: '/img/icons/android-chrome-192x192.png', sizes: '192x192' }]
}
],
workboxOptions: {
skipWaiting: true
}

// configure the workbox plugin
// workboxPluginMode: "InjectManifest",
// workboxOptions: {
// swSrc is required in InjectManifest mode.
// swSrc: "dev/sw.js"
// ...other Workbox options...
// }
}
}
module.exports = {}

0 comments on commit 858cc1d

Please sign in to comment.