Fixed href links in popup window

This commit is contained in:
Achiya Elyasaf
2023-08-06 09:59:35 +03:00
parent d9a782036f
commit a39c3e9edd

View File

@@ -97,5 +97,10 @@ $(document).ready(async function () {
commands.forEach((key) => { commands.forEach((key) => {
$(`#settings-form input[name='text-${key}']:checkbox`).on('change', makeHandleSettingChange(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() await refreshStorage()
}) })