aboutsummaryrefslogtreecommitdiff
path: root/main_background.js
diff options
context:
space:
mode:
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);
}