diff options
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; |