Selaa lähdekoodia

Fixed most annoying issue known to mankind.

KrisVos130 8 vuotta sitten
vanhempi
sitoutus
c0367c1895
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      app/client/scripts/routes.js

+ 4 - 0
app/client/scripts/routes.js

@@ -7,6 +7,10 @@ Router.onBeforeAction(function() {
     var self = this;
     var next = self.next;
     var isMaintanance = Meteor.settings.public.maintenance;
+    if (Session.get("rTimeInterval") !== undefined) {
+        Meteor.clearInterval(Session.get("rTimeInterval"));
+        Session.set("rTimeInterval", undefined);
+    }
     if(isMaintanance === true){
         var user = Meteor.user();
         if(user !== null && user.profile !== undefined && (user.profile.rank === "admin" || user.profile.rank === "moderator")){