From b934c1e344a46675024be0015bc4f19985853fdf Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Fri, 29 May 2015 14:25:11 -0700 Subject: [PATCH] fix broken RCE --- scripts/RootController.js | 2 +- scripts/UserService.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/RootController.js b/scripts/RootController.js index 519642e..3c2ed35 100644 --- a/scripts/RootController.js +++ b/scripts/RootController.js @@ -43,7 +43,7 @@ angular.module('flashy.RootController', ['ui.router', 'ngResource']). console.log('got websocket message ' + e.data); data = JSON.parse(e.data); if (data.event_type == 'reload') { - Materialize.toast('This page will refresh in 10 seconds. Sorry for the inconvenience!', 10000, function () { + Materialize.toast('This page will refresh in 10 seconds and clear the template cache. Sorry for the inconvenience!', 10000, '', function () { $templateCache.removeAll(); $window.location.reload(); }); diff --git a/scripts/UserService.js b/scripts/UserService.js index dd0f716..f7ec45a 100644 --- a/scripts/UserService.js +++ b/scripts/UserService.js @@ -42,6 +42,7 @@ angular.module('flashy.UserService', ['ui.router']). return rv; }; this.redirectToDefaultState = function($state) { + console.log('redirecting user to their default state'); if (!this.isLoggedIn()) return $state.go('login'); if (!_user.sections.length) return $state.go('addclass'); last_state = localStorage.getItem('last_state'); -- 1.9.1