Skip to content

Commit c06caf5

Browse files
committed
[refactor] improve clock render
1 parent acba96b commit c06caf5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

‎src/js/clock.js‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
varclock=(function(){
22

3-
varbind={};
4-
5-
bind.tick=function(){
6-
window.setInterval(function(){
7-
render.clear();
8-
render.all();
9-
},1000);
10-
};
11-
123
var_makeTimeObject=function(){
134
vartime=helper.getDateTime();
145
time.meridiem="AM";
@@ -34,6 +25,15 @@ var clock = (function(){
3425
returntime;
3526
};
3627

28+
varbind={};
29+
30+
bind.tick=function(){
31+
window.setInterval(function(){
32+
render.clear();
33+
render.all();
34+
},1000);
35+
};
36+
3737
varrender={};
3838

3939
render.clear=function(){

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="3.36.0";
3+
varcurrent="3.37.0";
44

55
varcompare=function(a,b){
66
varpa=a.split(".");

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "3.36.0",
5+
"version": "3.37.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)