Skip to content

Commit a7d6576

Browse files
committed
[refactor] change separators inputs to work like font inputs
1 parent 26325d3 commit a7d6576

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightTab",
3-
"version": "5.10.0",
3+
"version": "5.11.0",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/js/clock.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ var clock = (function(){
111111
clock.appendChild(elementMeridiem);
112112
};
113113
if(state.get.current().header.clock.separator.show){
114+
varseparatorCharacter;
114115
if(state.get.current().header.clock.separator.text.trim().replace(/\s\s+/g," ")!=""){
115-
varseparatorCharacter=state.get.current().header.clock.separator.text.trim().replace(/\s\s+/g," ");
116+
separatorCharacter=state.get.current().header.clock.separator.text.trim().replace(/\s\s+/g," ");
116117
}else{
117-
varseparatorCharacter=state.get.default().header.clock.separator.text;
118+
separatorCharacter=":";
118119
};
119120
varparts=clock.querySelectorAll("span");
120121
if(parts.length>1){

‎src/js/date.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ var date = (function(){
128128
date.appendChild(elementYear);
129129
};
130130
if(state.get.current().header.date.separator.show){
131+
varseparatorCharacter;
131132
if(state.get.current().header.date.separator.text.trim().replace(/\s\s+/g," ")!=""){
132-
varseparatorCharacter=state.get.current().header.date.separator.text.trim().replace(/\s\s+/g," ");
133+
separatorCharacter=state.get.current().header.date.separator.text.trim().replace(/\s\s+/g," ");
133134
}else{
134-
varseparatorCharacter=state.get.default().header.date.separator.text;
135+
separatorCharacter="/";
135136
};
136137
varparts=date.querySelectorAll("span");
137138
if(parts.length>1){

‎src/js/state.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var state = (function(){
3434
},
3535
separator: {
3636
show: true,
37-
text: ":"
37+
text: ""
3838
},
3939
meridiem: {
4040
show: true
@@ -75,7 +75,7 @@ var state = (function(){
7575
},
7676
separator: {
7777
show: true,
78-
text: "/"
78+
text: ""
7979
},
8080
format: "datemonth",
8181
size: 1,
@@ -366,13 +366,13 @@ var state = (function(){
366366
},
367367
clock: {
368368
separator: {
369-
text: ":"
369+
text: ""
370370
},
371371
size: 1
372372
},
373373
date: {
374374
separator: {
375-
text: "/"
375+
text: ""
376376
},
377377
size: 1
378378
},

‎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="5.10.0";
3+
varcurrent="5.11.0";
44

55
varname="Zonked Tarsier";
66

‎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": "5.10.0",
5+
"version": "5.11.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)