Skip to content

Commit

Permalink
Prevent the add-on from being reloaded in the current session due to …
Browse files Browse the repository at this point in the history
…an update.
  • Loading branch information
typeling1578 authored Mar 18, 2024
1 parent b8e5774 commit 9fae624
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,7 @@ async function deleteHistory(details) {
browser.webNavigation.onHistoryStateUpdated.addListener(deleteHistory);
browser.webNavigation.onReferenceFragmentUpdated.addListener(deleteHistory);
})();

// Prevent the add-on from being reloaded in the current session due to an update.
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onUpdateAvailable
browser.runtime.onUpdateAvailable.addListener(() => {});

0 comments on commit 9fae624

Please sign in to comment.