From cb7d974b1551cde22a461c7f3a2478a207f32c0f Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 13 Jul 2018 16:37:46 -0400 Subject: This may solve #170 #389 #506 --- www/js/app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/app.js b/www/js/app.js index 871ed7dd..3745e186 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -114,6 +114,14 @@ angular.module('zmApp', [ }) + // to take care of electron changing + // window title and going out of sync + .controller('zmApp.appCtrl', function ($scope) { + $scope.$on('$ionicView.afterEnter', function(ev, data) { + ev.stopPropagation(); + }); + }) + //http://stackoverflow.com/a/24519069/1361529 .filter('trusted', ['$sce', function ($sce) { return function (url) { @@ -2170,12 +2178,14 @@ angular.module('zmApp', [ url: '/app', abstract: true, templateUrl: 'templates/menu.html', - + controller: 'zmApp.appCtrl', cache: false, //controller: 'AppCtrl' }) + + .state('app.login', { data: { requireLogin: false -- cgit v1.2.3