Skip to content

Commit

Permalink
Update SW
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr committed Jul 23, 2024
1 parent 57cbe48 commit 2440bd0
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/js/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ async function onInstalled(details) {
const uninstallURL = new URL(
'https://open-links-in-new-tab.cssnr.com/uninstall/'
)
const options = await Promise.resolve(
setDefaultOptions({
onScroll: false,
onAttributes: false,
anchorLinks: false,
autoReload: true,
updateAll: true,
noOpener: true,
contextMenu: true,
showUpdate: false,
})
)
const options = await setDefaultOptions({
onScroll: false,
onAttributes: false,
anchorLinks: false,
autoReload: true,
updateAll: true,
noOpener: true,
contextMenu: true,
showUpdate: false,
})
if (options.contextMenu) {
createContextMenus()
}
Expand Down

0 comments on commit 2440bd0

Please sign in to comment.