mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Make Tridactyl reload pages on dev rebuilds
This commit is contained in:
parent
43b70c16dd
commit
5cad7ebfab
1 changed files with 9 additions and 2 deletions
|
@ -5230,8 +5230,15 @@ export async function keyfeed(mapstr: string) {
|
|||
//#background_helper
|
||||
browser.runtime.onInstalled.addListener(details => {
|
||||
if (details.reason === "install") tutor("newtab")
|
||||
else if ((details as any).temporary !== true && details.reason === "update") updatenative(false)
|
||||
// could add elif "update" and show a changelog. Hide it behind a setting to make it less annoying?
|
||||
else if (details.reason === "update") {
|
||||
if ((details as any).temporary !== true) {
|
||||
updatenative(false)
|
||||
} else {
|
||||
// Temporary extension has been updated in place
|
||||
// Reload all pages so Tridactyl can work in them
|
||||
reloadall()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/** Opens optionsUrl for the selected extension in a popup window.
|
||||
|
|
Loading…
Add table
Reference in a new issue