We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 876b420 commit 5df1359Copy full SHA for 5df1359
src/views/Settings.vue
@@ -233,6 +233,16 @@
233
<video-list-filters />
234
</v-card-text>
235
</v-sheet>
236
+ <v-col class="flex flex-col" style="display: flex">
237
+ <v-btn
238
+ color="red"
239
+ class="mt-2 mb-2"
240
+ style="margin: auto"
241
+ @click="forceUninstall"
242
+ >
243
+ Force Refresh App
244
+ </v-btn>
245
+ </v-col>
246
</v-col>
247
</v-row>
248
</v-container>
@@ -407,6 +417,15 @@ export default {
407
417
});
408
418
},
409
419
methods: {
420
+ forceUninstall() {
421
+ navigator.serviceWorker.getRegistration().then((reg) => {
422
+ if (reg) {
423
+ reg.unregister().then(() => { window.location.reload(); });
424
+ } else {
425
+ window.location.reload();
426
+ }
427
+ });
428
+ },
410
429
goToSettings() {
411
430
this.$emit("close");
412
431
this.$router.push({ path: "/settings" });
0 commit comments