Skip to content

Commit 8b2806a

Browse files
committed
housekeeping
1 parent deb56cd commit 8b2806a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"strict_min_version": "60.0"
88
}
99
},
10-
"version": "0.1.1",
10+
"version": "0.1.3",
1111
"author": "semanticdata",
1212
"icons": {
1313
"48": "icon48.png"
@@ -17,12 +17,12 @@
1717
"storage"
1818
],
1919
"chrome_url_overrides": {
20-
"newtab": "new-tab.html"
20+
"newtab": "newtab.html"
2121
},
2222
"browser_action": {
2323
"browser_style": true,
2424
"default_title": "New Tab Notes",
25-
"default_popup": "new-tab.html"
25+
"default_popup": "newtab.html"
2626
},
2727
"commands": {
2828
"_execute_browser_action": {

new-tab.html renamed to newtab.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
88
<title>New Tab</title>
99
<link rel="icon" type="image/png" sizes="48x48" href="icon48.png">
10-
<script type="text/javascript" src="./newtabnotes.js"></script>
10+
<script type="text/javascript" src="./tabnotes.js"></script>
1111
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700&display=swap" /> -->
1212
</head>
1313

@@ -18,7 +18,7 @@
1818
background: rebeccapurple;
1919
}
2020

21-
#new-tab-notes {
21+
#notes {
2222
box-sizing: border-box;
2323
border: 0;
2424
font-size: 18px;
@@ -37,7 +37,7 @@
3737

3838
<body>
3939
<main>
40-
<textarea id="new-tab-notes" placeholder="Start writing..."></textarea>
40+
<textarea id="notes" placeholder="Start writing."></textarea>
4141
</main>
4242
</body>
4343

newtabnotes.js renamed to tabnotes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function getBrowser() {
3333

3434
function saveToDB() {
3535
data = {
36-
tab_note: document.querySelector("#new-tab-notes").value
36+
tab_note: document.querySelector("#notes").value
3737
};
3838
if (browser_type === "Chrome") {
3939
chrome.storage.sync.set(data, function() {});
@@ -46,13 +46,13 @@ function tabOpen(tab) {
4646
if (browser_type === "Chrome") {
4747
chrome.storage.sync.get(["tab_note"], function(result) {
4848
if (typeof result.tab_note !== "undefined") {
49-
document.querySelector("#new-tab-notes").value = result.tab_note;
49+
document.querySelector("#notes").value = result.tab_note;
5050
}
5151
});
5252
} else {
5353
browser_obj.storage.sync.get(["tab_note"]).then(result => {
5454
if (typeof result.tab_note !== "undefined") {
55-
document.querySelector("#new-tab-notes").value = result.tab_note;
55+
document.querySelector("#notes").value = result.tab_note;
5656
}
5757
});
5858
}

0 commit comments

Comments
 (0)