Skip to content

Commit

Permalink
Released version 2.1 and updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdulcet committed Jul 12, 2024
1 parent 0764c17 commit e973014
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion management/management.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3><img src="/icons/icon.svg" class="icon"> Thunderbird Send</h3>
<h1 data-i18n="__MSG_manageTitle__">Account Settings</h1>
<span class="helper-text" data-i18n="__MSG_manageNote__">
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.
</span><br>
<hr>
<span class="helper-text" data-i18n="__MSG_manageGetList__" data-opt-i18n-keep-children>
Expand Down
2 changes: 1 addition & 1 deletion management/modules/CustomOptionTriggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {});

Check warning on line 55 in management/modules/CustomOptionTriggers.js

View workflow job for this annotation

GitHub Actions / ESLint

Arrow function should not return assignment

Check failure on line 55 in management/modules/CustomOptionTriggers.js

View workflow job for this annotation

GitHub Actions / ESLint

Unexpected comparison to newly constructed object. These two values can never be equal
// Set the new options
account[accountId] = param.optionValue;

Expand Down
7 changes: 4 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -31,7 +31,8 @@
},

"background": {
"page": "background.html"
"scripts": ["background.js"],
"type": "module"
},

"cloud_file": {
Expand All @@ -44,7 +45,7 @@
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "102.0"
"strict_min_version": "115.0"
}
}
}
2 changes: 1 addition & 1 deletion options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h3><img src="/icons/icon.svg" class="icon"> Thunderbird Send</h3>
<h1 data-i18n="__MSG_optionsTitle__">Options</h1>
<span class="helper-text" data-i18n="__MSG_optionsNote__">
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.
</span>
<hr>

Expand Down

0 comments on commit e973014

Please sign in to comment.