X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fprefs.js;h=263970ca4d0fb7d130a0b79b40d9071203947c8d;hb=6b4ef168170e40c7580678dcd73fd81b5e95b2e0;hp=415bdc6884d6bdb8df7079c14f3b32a95e79a42e;hpb=42e0c21312ba187cbc966ade7581bffff1f12161;p=brisk.git diff --git a/web/prefs.js b/web/prefs.js index 415bdc6..263970c 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; + } } }