From cb2b45a5d6b1972b20dc715dfdf16320435167e4 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 15 Apr 2022 05:48:26 -0700 Subject: add option for date colour --- options.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'options.js') diff --git a/options.js b/options.js index 8060e63..a0b6b71 100644 --- a/options.js +++ b/options.js @@ -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; -- cgit v1.2.3-70-g09d2