From 6ce1f311168f8aa7cd7dcf5661ccb093931aad1d Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 27 Jul 2022 12:04:23 +1000 Subject: fixing email template of contact finder --- content/contactFinder.js | 2 +- main_background.js | 2 +- 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) { -- cgit v1.2.3