Skip to content

Commit 12d2eed

Browse files
committed
Fixed undefined bug on first init
1 parent 284df91 commit 12d2eed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"strict_min_version": "60.0"
88
}
99
},
10-
"version": "0.1.0",
10+
"version": "0.1.1",
1111
"author": "Nishit",
1212
"icons": {
1313
"48": "icon48.png"

newtab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=<device-width>, initial-scale=1.0" />
66
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7-
<title>Document</title>
7+
<title>New Tab</title>
88
<script type="text/javascript" src="./tabnotes.js"></script>
99
</head>
1010
<style>

tabnotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function saveToDB() {
2020

2121
function tabOpen(tab) {
2222
browser.storage.sync.get("tab_note").then(result => {
23-
if (typeof result !== "undefined") {
23+
if (typeof result.tab_note !== "undefined") {
2424
document.querySelector("#notes").value = result.tab_note;
2525
}
2626
});

0 commit comments

Comments
 (0)