Skip to content

Commit

Permalink
fix Options opening twice
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNygaard committed Mar 24, 2024
1 parent fae4a79 commit 461fd9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebExtension/boarding/boarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ function init() {
elm.textContent = currentVersion;
});
document.querySelectorAll('.settings').forEach((elm) => {
elm.addEventListener('click', () => browser.runtime.openOptionsPage())
elm.addEventListener('click', (ev) => {
ev.preventDefault();
browser.runtime.openOptionsPage();
})
});
let vboarding = currentVersion;
if (previousVersion) vboarding += (',' + previousVersion);
Expand Down

0 comments on commit 461fd9c

Please sign in to comment.