summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-15 03:07:28 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-15 03:10:38 -0700
commit566ea4b8b6a5c9f16cbeb280c73df836fee741fe (patch)
treefdee30370b87962c810db9ab6884e042c1b9eed0
parenta82a5ed69075d1069d3bbe64db5a162906062611 (diff)
downloadtempo-566ea4b8b6a5c9f16cbeb280c73df836fee741fe.tar.gz
tempo-566ea4b8b6a5c9f16cbeb280c73df836fee741fe.tar.xz
appease the mozilla robot
-rw-r--r--manifest.json2
-rw-r--r--options.js4
-rw-r--r--tempo.js8
3 files changed, 7 insertions, 7 deletions
diff --git a/manifest.json b/manifest.json
index 0d646e6..874b07a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Tempo",
- "version": "0.7",
+ "version": "0.8",
"description": "Replace new tab page with a clock.",
"icons": {
diff --git a/options.js b/options.js
index c3f008b..8060e63 100644
--- a/options.js
+++ b/options.js
@@ -10,8 +10,8 @@ function saveOptions() {
localStorage['bg'] = document.getElementById('bg').value;
let status = document.getElementById('status');
- status.innerHTML = 'Options saved';
- setTimeout(function() { status.innerHTML = '' }, 2000);
+ status.textContent = 'Options saved';
+ setTimeout(function() { status.textContent = '' }, 2000);
}
function restoreOptions() {
diff --git a/tempo.js b/tempo.js
index ae3fa22..a18be78 100644
--- a/tempo.js
+++ b/tempo.js
@@ -20,12 +20,12 @@ function updateTime() {
if (timefmt == 12) // default to 24
h = (h + 11) % 12 + 1;
- let str_t = padTime(h) + '&nbsp;&nbsp;' + padTime(m) +
- '&nbsp;&nbsp' + padTime(s);
+ let str_t = padTime(h) + '\u00A0\u00A0' + padTime(m) +
+ '\u00A0\u00A0' + padTime(s);
let str_d = dd + ' ' + months[dm] + ' ' + dy;
- document.getElementById('timeval').innerHTML = str_t;
- document.getElementById('dateval').innerHTML = str_d;
+ document.getElementById('timeval').textContent = str_t;
+ document.getElementById('dateval').textContent = str_d;
}
function startTempo() {