diff options
Diffstat (limited to 'src/pages/options')
-rw-r--r-- | src/pages/options/widgets/general.js | 6 |
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'; |