From fa308884c350aa8987be22c96ec108cd537bdd47 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Fri, 17 Apr 2020 21:28:45 +0200 Subject: [PATCH] dev commit --- web/prefs.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/web/prefs.js b/web/prefs.js index 415bdc6..a446040 100644 --- a/web/prefs.js +++ b/web/prefs.js @@ -82,15 +82,17 @@ function prefs_apply(prefs_new, is_update, is_volat) tra.show_noauth(); } - if (prefs.listen != l_list_isol && prefs_new.listen == l_list_isol) { - if (standup_data_old != null) { - standup_data_notisol = standup_data_old.slice(); + if (prefs == undefined) { + if (prefs.listen != l_list_isol && prefs_new.listen == l_list_isol) { + if (standup_data_old != null) { + standup_data_notisol = standup_data_old.slice(); + } } - } - else if (prefs.listen == l_list_isol && prefs_new.listen != l_list_isol) { - if (standup_data_notisol != null) { - standup_data_old = standup_data_notisol; - standup_data_notisol = null; + else if (prefs.listen == l_list_isol && prefs_new.listen != l_list_isol) { + if (standup_data_notisol != null) { + standup_data_old = standup_data_notisol; + standup_data_notisol = null; + } } } -- 2.17.1