Browse Source

1 line code to fix title

Title kept showing the title and artist after you left the station
johand199 9 năm trước cách đây
mục cha
commit
065e0ea257
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/client/scripts/routes.js

+ 2 - 1
app/client/scripts/routes.js

@@ -10,11 +10,12 @@ Router.onBeforeAction(function() {
             if (res) {
                 self.render('banned');
             } else {
+                document.title = 'Musare';
                 next();
             }
         });
     } else {
-        next();
+       this.next();
     }
 });