1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 12:36:37 +02:00

Add button to reload extension if update pending

For #522
This commit is contained in:
kkapsner 2021-01-26 21:45:15 +01:00
parent 8e5986817e
commit a5558b4144
7 changed files with 38 additions and 1 deletions

View file

@ -20,6 +20,9 @@
const mobile = require("../lib/mobile");
const callbacks = {
reloadExtension: function(){
browser.runtime.reload();
},
openNavigatorSettings: function(){
logging.verbose("open navigator settings");
window.open("navigator.html", "_blank");

View file

@ -19,6 +19,11 @@
{
"name": "disruptSessionOnUpdate"
},
{
"name": "reloadExtension",
"actions": ["reloadExtension",],
"displayDependencies": [{"updatePending": [true]}]
},
]
},
{