Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiixInc authored Jan 24, 2022
1 parent 95c59ce commit 7a0b6df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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": "Scape",
"description": "Give your browser the fresh coat of paint it deserves!",
"version": "2.1.1",
"version": "2.1.2",
"chrome_url_overrides": {
"newtab": "index.html"
},
Expand Down
8 changes: 5 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ chrome.storage.sync.get(defaults, (config) => {
.toLocaleString("en-GB", options)
.replace(/am|pm| /gi, "")

if (newTime.indexOf("0:") === 0) newTime.replace("0:", "12:")

time.innerText = newTime;
if (newTime.indexOf("0:") === 0) {
time.innerText = newTime.replace("0:", "12:");
} else {
time.innerText = newTime;
}
}

loadTime();
Expand Down

0 comments on commit 7a0b6df

Please sign in to comment.