From a39c3e9edd8faf4c742e155be06c65f1e1761ac7 Mon Sep 17 00:00:00 2001 From: Achiya Elyasaf <10044875+eggsterino@users.noreply.github.com> Date: Sun, 6 Aug 2023 09:59:35 +0300 Subject: [PATCH] Fixed href links in popup window --- popup/popup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/popup/popup.js b/popup/popup.js index 3c44b99..b721189 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -97,5 +97,10 @@ $(document).ready(async function () { commands.forEach((key) => { $(`#settings-form input[name='text-${key}']:checkbox`).on('change', makeHandleSettingChange(key)) }) + + $('body').on('click', 'a', function(){ + chrome.tabs.create({url: $(this).attr('href')}); + return false; + }); await refreshStorage() })