about summary refs log tree commit diff stats
path: root/src/pages/options/widgets
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-07-24 11:34:17 +0300
committerManeraKai <manerakai@protonmail.com>2022-07-24 11:34:17 +0300
commit663c61e0f26ed4259b64ec574f833155df1ab8dc (patch)
treebe58876ebca99733cf54a297d22e2117a176f001 /src/pages/options/widgets
parentRe-add instances list (for dev reasons) (diff)
downloadlibredirect-663c61e0f26ed4259b64ec574f833155df1ab8dc.zip
fix some typos
Diffstat (limited to 'src/pages/options/widgets')
-rw-r--r--src/pages/options/widgets/general.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/options/widgets/general.js b/src/pages/options/widgets/general.js
index 0f7a3140..352e4b76 100644
--- a/src/pages/options/widgets/general.js
+++ b/src/pages/options/widgets/general.js
@@ -42,7 +42,7 @@ function exportSettings() {
     null,
     result => {
       let resultString = JSON.stringify(result, null, '  ');
-      exportSettingsElement.href = 'data:application/json;base64,' + btoa(resultString);
+      exportSettingsElement.href = 'data:application/json;base64,' + btoa(encodeURI(resultString));
       exportSettingsElement.download = 'libredirect-settings.json';
     }
   );
@@ -171,7 +171,7 @@ protocolElement.addEventListener("change", event => {
 
 let protocolFallbackCheckbox = document.getElementById("protocol-fallback-checkbox")
 protocolFallbackCheckbox.addEventListener("change", event => {
-  browser.storage.local.set({ protocolFallback: event.target.checked});
+  browser.storage.local.set({ protocolFallback: event.target.checked });
 })
 
 let nameCustomInstanceInput = document.getElementById("exceptions-custom-instance");
@@ -210,7 +210,7 @@ browser.storage.local.get(
     protocolElement.value = r.protocol;
     protocolFallbackCheckbox.checked = r.protocolFallback;
     // firstPartyIsolate.checked = r.firstPartyIsolate;
-     
+
     let protocolFallbackElement = document.getElementById('protocol-fallback')
     if (protocolElement.value == "normal") {
       protocolFallbackElement.style.display = 'none';