aboutsummaryrefslogtreecommitdiff
path: root/main_background.js
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2019-02-25 13:04:09 +0100
committerhackademix <giorgio@maone.net>2019-02-25 13:04:09 +0100
commitc80d6d7f2842e7e07bd2b070d975f898f23b54dd (patch)
tree75f9db6b4526e58b69c905a0c9ad604d7c9fb02f /main_background.js
parent14bed707e5c9891d4502e276a757bbef014e6b4e (diff)
Fixed bug preventing javascript: URLs from being correctly processed.
Diffstat (limited to 'main_background.js')
-rw-r--r--main_background.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/main_background.js b/main_background.js
index 324c68e..ebf9358 100644
--- a/main_background.js
+++ b/main_background.js
@@ -1086,6 +1086,7 @@ async function editHtml(html, documentUrl, tabId, frameId, whitelisted){
edited = dejaVu.get(key);
} else {
let url = `view-source:${documentUrl}#line${line}(<${element.tagName} ${name}>)\n${encodeURIComponent(value.trim())}`;
+ if (name === "href") value = decodeURIComponent(value);
edited = await get_script(value, url, tabId, whitelist.contains(documentUrl));
dejaVu.set(key, edited);
}