Skip to content

Commit

Permalink
Merge pull request #63 from penge/fix
Browse files Browse the repository at this point in the history
Fix initialization for index and focus
  • Loading branch information
penge authored Feb 15, 2020
2 parents 739a585 + bd6077b commit e6681da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ chrome.runtime.onInstalled.addListener(() => {

chrome.storage.local.get(["index", "font", "size", "mode", "focus"], local => {
chrome.storage.local.set({
index: (local.index !== "undefined" ? local.index : defaultIndex),
index: (typeof local.index !== "undefined" ? local.index : defaultIndex),
font: (local.font || defaultFont),
size: (local.size || defaultSize),
mode: (local.mode || defaultMode),
focus: (local.focus !== "undefined" ? local.focus : defaultFocus),
focus: (typeof local.focus !== "undefined" ? local.focus : defaultFocus),
});
});

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "My Notes",
"description": "Turn your New Tab into a note-taking tool.",
"version": "2.3.1",
"version": "2.3.2",
"icons": { "128": "icon128.png" },
"options_page": "options.html",
"permissions": ["storage", "contextMenus"],
Expand Down

0 comments on commit e6681da

Please sign in to comment.