From 08f647f86ecec26bbfcb3457942f13201528aa1e Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 24 May 2019 14:44:50 +0200 Subject: [PATCH] WebExtension: If no setting is found, leave archive-setting checked. --- browser-plugins/webextension/manifest.json | 2 +- browser-plugins/webextension/options.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/browser-plugins/webextension/manifest.json b/browser-plugins/webextension/manifest.json index a94aa7b..55794a4 100644 --- a/browser-plugins/webextension/manifest.json +++ b/browser-plugins/webextension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "remwharead", - "version": "0.3.0", + "version": "0.3.1", "description": "Integrates remwharead into your Browser.", "homepage_url": "https://schlomp.space/tastytea/remwharead", diff --git a/browser-plugins/webextension/options.js b/browser-plugins/webextension/options.js index aba7d0d..c7aedeb 100644 --- a/browser-plugins/webextension/options.js +++ b/browser-plugins/webextension/options.js @@ -12,7 +12,10 @@ function restore_options() var item = browser.storage.sync.get('archive'); item.then((res) => { - document.querySelector("#archive").checked = res.archive; + if (res.archive === false) + { + document.querySelector("#archive").checked = false; + } }); }