aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-07-27 12:04:23 +1000
committerYuchen Pei <hi@ypei.me>2022-07-27 12:04:23 +1000
commit6ce1f311168f8aa7cd7dcf5661ccb093931aad1d (patch)
tree96a2e01c1ce5963891f8a087798e4101792a63f7
parent428a42de4119f0e33a49f02c00b9dee49224b771 (diff)
fixing email template of contact finder
-rw-r--r--content/contactFinder.js2
-rw-r--r--main_background.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/content/contactFinder.js b/content/contactFinder.js
index fb0ec27..46e6595 100644
--- a/content/contactFinder.js
+++ b/content/contactFinder.js
@@ -239,7 +239,7 @@ function main() {
for (const recipient of emails.slice(0, 10)) {
const a = contentDoc.createElement("a");
// TODO: fix prefs
- a.href = `mailto:${recipient}?subject${encodeURIComponent(prefs["pref_subject"])
+ a.href = `mailto:${recipient}?subject=${encodeURIComponent(prefs["pref_subject"])
}&body=${encodeURIComponent(prefs["pref_body"])
}`;
a.textContent = recipient;
diff --git a/main_background.js b/main_background.js
index 9f8b0d6..0ea6ac2 100644
--- a/main_background.js
+++ b/main_background.js
@@ -301,7 +301,7 @@ async function connected(p) {
});
// Send a message back with the relevant settings
- p.postMessage(await browser.storage.local.get(['prefs_subject', 'prefs_body']));
+ p.postMessage(await browser.storage.local.get(['pref_subject', 'pref_body']));
return;
}
p.onMessage.addListener(async function(m) {