diff --git a/README.md b/README.md index 8b71656..dfd8265 100644 --- a/README.md +++ b/README.md @@ -37,22 +37,25 @@ Send Files => [Send](https://github.com/timvisee/send) **Note**: The Extension will be using random instances by default. You can modify this and add custom instances too. +[FAQ](https://libredirect.github.io/faq.html) + ## Donate [![Liberapay](./img/liberapay.svg)](https://liberapay.com/LibRedirect)  [![Patreon](./img/patreon.svg)](https://patreon.com/LibRedirect)  [![Buy me a coffee](./img/bmc.svg)](https://www.buymeacoffee.com/libredirect) -BTC: [bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q](bitcoin:bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q)\ -BCH: [qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8](bitcoincash:qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8)\ -ETH: [0x896E5796Da76E49A400A9186E1c459CD2C64b4E8](ethereum:0x896E5796Da76E49A400A9186E1c459CD2C64b4E8)\ -XMR: [4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR](monero:4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR) - -[FAQ](https://libredirect.github.io/faq.html) +BTC: bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q\ +BCH: qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8\ +ETH: 0x896E5796Da76E49A400A9186E1c459CD2C64b4E8\ +XMR: 4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR ## Mirror Repos [![GitHub](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/github.svg)](https://github.com/libredirect/libredirect/)   [![Codeberg](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/codeberg.svg)](https://codeberg.org/LibRedirect/libredirect)   +## Translate +[![Weblate](./img/weblate.svg)](https://hosted.weblate.org/projects/libredirect/extension) + ## Development ### Install Dependencies [Node.js](https://nodejs.org/) latest LTS is recommended diff --git a/img/weblate.svg b/img/weblate.svg new file mode 100644 index 0000000..eb87f99 --- /dev/null +++ b/img/weblate.svg @@ -0,0 +1,163 @@ + + + +WEBLATE diff --git a/src/pages/background/background.js b/src/pages/background/background.js index afb63c5..c5f1718 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -24,8 +24,10 @@ window.browser = window.browser || window.chrome; function openResetWarning() { return new Promise(resolve => { browser.storage.local.get(null, r => { - const old = encodeURIComponent(JSON.stringify(r)) - browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) }); + if (r.theme) { + const old = encodeURIComponent(JSON.stringify(r)) + browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) }); + } resolve(); }) }) diff --git a/src/pages/options/widgets/general.js b/src/pages/options/widgets/general.js index f46c401..a66e3b4 100644 --- a/src/pages/options/widgets/general.js +++ b/src/pages/options/widgets/general.js @@ -87,16 +87,21 @@ importSettingsElement.addEventListener("change", await redditHelper.pasteTedditCookies(); await tiktokHelper.pasteProxiTokCookies(); - + location.reload(); }) }); - } else + } else { + console.log('incompatible settings'); importError() + } } - reader.onerror = error => importError(); + reader.onerror = error => { + console.log('error', error); + importError() + }; } ); function importError() {