Skip to content

Commit e54db3d

Browse files
committed
Fixes check if Router object exists.
1 parent 010a37f commit e54db3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

urigo:angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var onReady = function () {
2929
}
3030

3131
// Recompile after iron:router builds page
32-
if(Router) {
32+
if(typeof Router != 'undefined') {
3333
Router.onAfterAction(function(req, res, next) {
3434
Tracker.afterFlush(function() {
3535
angular.element(document).injector().invoke(['$compile', '$document', '$rootScope',

0 commit comments

Comments
 (0)