about summary refs log tree commit diff stats
path: root/src/pages/popup/popup.js
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-06-28 10:31:34 +0300
committerManeraKai <manerakai@protonmail.com>2022-06-28 10:31:34 +0300
commitf2294d7da063e05ee81befb27173b791bccdc2c8 (patch)
tree494cb9da2b4379c416e041e9504ecba5c32259d9 /src/pages/popup/popup.js
parentMerge branch 'UI-Changes' of https://github.com/EdwardLangdon/libredirect int... (diff)
downloadlibredirect-f2294d7da063e05ee81befb27173b791bccdc2c8.zip
fixing & refining About Page #368
Diffstat (limited to 'src/pages/popup/popup.js')
-rw-r--r--src/pages/popup/popup.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pages/popup/popup.js b/src/pages/popup/popup.js
index a54c69ac..e12e61e9 100644
--- a/src/pages/popup/popup.js
+++ b/src/pages/popup/popup.js
@@ -51,7 +51,6 @@ utils.copyRaw(true).then(r => {
     copy_raw.addEventListener("click", () => utils.copyRaw(false, copy_raw));
   }
 })
-
 document.getElementById("more-options").addEventListener("click", () => browser.runtime.openOptionsPage());
 
 const allSites = document.getElementsByClassName('all_sites')[0];
@@ -323,7 +322,7 @@ document.addEventListener("change", () => {
 
 for (const a of document.getElementsByTagName('a')) {
   a.addEventListener('click', e => {
-    if (!a.classList.contains('button')) {
+    if (!a.classList.contains('prevent')) {
       browser.tabs.create({ url: a.getAttribute('href') });
       e.preventDefault();
     }