diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-15 05:48:26 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-15 05:48:26 -0700 |
commit | cb2b45a5d6b1972b20dc715dfdf16320435167e4 (patch) | |
tree | 2103bdd84e0f74d967f3ba9bb567b4ca834c27a2 /options.js | |
parent | 566ea4b8b6a5c9f16cbeb280c73df836fee741fe (diff) | |
download | tempo-cb2b45a5d6b1972b20dc715dfdf16320435167e4.tar.gz tempo-cb2b45a5d6b1972b20dc715dfdf16320435167e4.tar.xz |
add option for date colour
Diffstat (limited to 'options.js')
-rw-r--r-- | options.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,6 +7,7 @@ function saveOptions() { localStorage['timefmt'] = timefmt; localStorage['fg'] = document.getElementById('fg').value; + localStorage['fg_date'] = document.getElementById('fg_date').value; localStorage['bg'] = document.getElementById('bg').value; let status = document.getElementById('status'); @@ -24,6 +25,11 @@ function restoreOptions() { let fg = localStorage['fg']; if (fg) document.getElementById('fg').value = fg; + + let fg_date = localStorage['fg_date']; + if (fg_date) + document.getElementById('fg_date').value = fg_date; + let bg = localStorage['bg']; if (bg) document.getElementById('bg').value = bg; |