Skip to content

Commit

Permalink
Update to manifest 0.3.0
Browse files Browse the repository at this point in the history
* Prune `console.log` statements
* Disable drawing while video loading
* Fix int parsing while loading unit from storage
  • Loading branch information
aiden2480 committed Sep 6, 2021
1 parent 62b48da commit 98c01b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ window.addEventListener("load", () => {
// Load the selected kanji once prepared
chrome.storage.local.get(["selectedunit", "selectedkanji"], result => {
console.log(`Retrieved from storage %cset ${result.selectedunit} %ckanji ${result.selectedkanji}`, "color: #e67e22", "color: #fee75c");
let unit = result.selectedunit || wakattaunits.length - 1;
let unit = parseInt(result.selectedunit) || wakattaunits.length - 1;
let kanji = result.selectedkanji || wakattaunits[unit][0];

loadKanjiSet(parseInt(unit), kanji);
loadKanjiSet(unit, kanji);
selectedunit.value = unit;
selectedkanji.value = kanji;
});
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "KanjiThing",
"description": "Learn kanji stroke order from the browser",
"version": "0.2.2",
"version": "0.3.0",
"manifest_version": 3,
"permissions": ["storage"],
"action": {
Expand Down

0 comments on commit 98c01b6

Please sign in to comment.