summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-05-15 08:04:48 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-05-15 08:04:48 -0400
commit37f6e07ed6c16cb234fca3b275632c4471dc3979 (patch)
tree895e981098930bab36acb8c49863dd0a2fcc7a04
parent06b899198a15f7b81a9fae57d60e8db6b3655a38 (diff)
make sure we don't block transition for first use
-rwxr-xr-xwww/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 3dde24f1..bcdbc93f 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1520,7 +1520,7 @@ angular.module('zmApp', [
$rootScope.$on('$stateChangeStart', function (event, toState, toParams) {
- if (!$rootScope.initComplete) {
+ if (!$rootScope.initComplete && (toState!= 'app.first-use')) {
NVR.debug ("---> Init not complete, ignoring state change request to "+toState.name);
event.preventDefault();
return;