Fix for duplicat tab opens in Chrome

main
Elbert Alias 3 years ago
parent 23cf8f0797
commit fed3b58256

@ -301,6 +301,7 @@ const Popup = {
Array.from(document.querySelectorAll('a')).forEach((a) => Array.from(document.querySelectorAll('a')).forEach((a) =>
a.addEventListener('click', (event) => { a.addEventListener('click', (event) => {
event.preventDefault() event.preventDefault()
event.stopPropagation()
open(a.href) open(a.href)
@ -461,6 +462,7 @@ const Popup = {
Array.from(document.querySelectorAll('a')).forEach((a) => Array.from(document.querySelectorAll('a')).forEach((a) =>
a.addEventListener('click', (event) => { a.addEventListener('click', (event) => {
event.preventDefault() event.preventDefault()
event.stopPropagation()
open(a.href) open(a.href)