Skip to content

Commit

Permalink
Fix undefined options
Browse files Browse the repository at this point in the history
  • Loading branch information
aledeg committed Apr 20, 2019
1 parent b083745 commit a824d7e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

"manifest_version": 2,
"name": "LinkDump",
"version": "1.10",
"version": "1.11",
"description": "__MSG_extensionDescription__",
"icons": {
"48": "icons/linkdump-48.png"
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkdump",
"version": "1.10.0",
"version": "1.11.0",
"description": "Store links and dump them",
"main": "background.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions popup/load.content.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function drawContent() {
item.textContent = browser.i18n.getMessage(`popupButtonAction${action}`);
});
browser.storage.local.get('options').then(obj => {
if (obj.options.defaultFormat) {
if (obj.options != undefined && obj.options.defaultFormat) {
const target = document.querySelector(`[name="formats"][data-format="${obj.options.defaultFormat}"]`);
formatSelect(target, obj.options.defaultFormat);
}
if (obj.options.clearAfterDownload) {
if (obj.options != undefined && obj.options.clearAfterDownload) {
document.querySelector('[data-action="download"]').dataset.clear = true;
}
});
Expand Down

0 comments on commit a824d7e

Please sign in to comment.