WebExtension: If no setting is found, leave archive-setting checked.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-05-24 14:44:50 +02:00
parent 42fbf0a55d
commit 08f647f86e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "remwharead", "name": "remwharead",
"version": "0.3.0", "version": "0.3.1",
"description": "Integrates remwharead into your Browser.", "description": "Integrates remwharead into your Browser.",
"homepage_url": "https://schlomp.space/tastytea/remwharead", "homepage_url": "https://schlomp.space/tastytea/remwharead",

View File

@ -12,7 +12,10 @@ function restore_options()
var item = browser.storage.sync.get('archive'); var item = browser.storage.sync.get('archive');
item.then((res) => item.then((res) =>
{ {
document.querySelector("#archive").checked = res.archive; if (res.archive === false)
{
document.querySelector("#archive").checked = false;
}
}); });
} }