From e973014bc43c508c22c9e43ec1c8306df1b5b155 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Fri, 12 Jul 2024 03:38:31 -0700 Subject: [PATCH] Released version 2.1 and updated README. --- README.md | 14 ++++++++++++-- _locales/en/messages.json | 4 ++-- background.js | 2 +- management/management.html | 2 +- management/modules/CustomOptionTriggers.js | 2 +- manifest.json | 7 ++++--- options/options.html | 2 +- 7 files changed, 22 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5c46544..f47e6b1 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,20 @@ More information on the encryption used can be found in the official Send servic ❤️ Please visit [tealdulcet.com](https://www.tealdulcet.com/) to support this extension and my other software development. -⬇️ Download from [Addons.thunderbird.net](https://addons.thunderbird.net/thunderbird/addon/filelink-provider-for-send/) (ATN). - This add-on is not affiliated with Mozilla, Firefox or any Send service instance. +## Download + +* [Addons.thunderbird.net](https://addons.thunderbird.net/thunderbird/addon/filelink-provider-for-send/) (ATN) + +## Install from source + +1. Clone the repository: +```bash +git clone --recurse-submodules https://github.com/tdulcet/Thunderbird-Send.git +``` +2. Follow [these instructions](https://developer.thunderbird.net/add-ons/hello-world-add-on#installing) to install it in Thunderbird + ## Contributing ### Translations diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 69dc4c2..ce66b41 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -126,7 +126,7 @@ "message": "Account Settings" }, "manageNote": { - "message": "This is your account settings for the selected Thunderbird Send account. For the global options/preferences page, go to the Thunderbird 🧩 Add-ons manager or click the button above." + "message": "This is your account settings for the selected Thunderbird Send account. For the global options/preferences page, click the button above or go to the Thunderbird Menu (≡) > 🧩 Add-ons and Themes." }, "manageGetList": { "message": "Click this link for a list of $link$ and their respective maximum file size.", @@ -287,7 +287,7 @@ "message": "Options" }, "optionsNote": { - "message": "This is your global options/preferences for Thunderbird Send. For the account management pages, go to the Thunderbird ⚙️ Options/Preferences." + "message": "This is your global options/preferences for Thunderbird Send. For the account management pages, go to the Thunderbird Menu (≡) > ⚙️ Settings > ✏️ Composition > Attachments." }, "optionsNotifLabel": { "message": "Display Desktop notifications" diff --git a/background.js b/background.js index 46ea8cc..0679dd9 100644 --- a/background.js +++ b/background.js @@ -637,7 +637,7 @@ async function uploaded(account, fileInfo, tab, relatedFileInfo) { const awindow = await browser.windows.create({ url: browser.runtime.getURL("popup/popup.html"), type: "popup", - // Should not be needed: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/create#parameters + // Should not be needed: https://bugzilla.mozilla.org/show_bug.cgi?id=1902844 allowScriptsToClose: true }); console.log(awindow); diff --git a/management/management.html b/management/management.html index 2d4b34e..bdec333 100644 --- a/management/management.html +++ b/management/management.html @@ -65,7 +65,7 @@

Thunderbird Send

Account Settings

This is your account settings for the selected Thunderbird Send account. For the global - options/preferences page, go to the Thunderbird 🧩 Add-ons manager or click the button above. + options/preferences page, click the button above or go to the Thunderbird Menu (≡) > 🧩 Add-ons and Themes.

diff --git a/management/modules/CustomOptionTriggers.js b/management/modules/CustomOptionTriggers.js index 68dc240..bfd364a 100644 --- a/management/modules/CustomOptionTriggers.js +++ b/management/modules/CustomOptionTriggers.js @@ -52,7 +52,7 @@ async function set(param) { // Get the existing + default options let account = await AddonSettings.get(param.option); // Remove the default options - account = Object.entries(account).reduce((a, [k, v]) => v === Object(v) ? (a[k] = v, a) : a, {}); + account = Object.entries(account).reduce((a, [k, v]) => v === new Object(v) ? (a[k] = v, a) : a, {}); // Set the new options account[accountId] = param.optionValue; diff --git a/manifest.json b/manifest.json index 0934748..5b0c92a 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "default_locale": "en", "name": "__MSG_extensionName__", - "version": "2.0", + "version": "2.1", "author": "Teal Dulcet", "description": "__MSG_extensionDescription__", "homepage_url": "https://github.com/tdulcet/Thunderbird-Send", @@ -31,7 +31,8 @@ }, "background": { - "page": "background.html" + "scripts": ["background.js"], + "type": "module" }, "cloud_file": { @@ -44,7 +45,7 @@ "browser_specific_settings": { "gecko": { "id": "send@tealdulcet.com", - "strict_min_version": "102.0" + "strict_min_version": "115.0" } } } diff --git a/options/options.html b/options/options.html index a691ba0..e04b7c5 100644 --- a/options/options.html +++ b/options/options.html @@ -64,7 +64,7 @@

Thunderbird Send

Options

This is your global options/preferences for Thunderbird Send. For the account management pages, go to - the Thunderbird ⚙️ Options/Preferences. + the Thunderbird Menu (≡) > ⚙️ Settings > ✏️ Composition > Attachments.