Commit 52758f4d authored by Ujvari Gergely's avatar Ujvari Gergely

Easy fix for 281

parent a205790c
......@@ -212,7 +212,7 @@ class Annotation
publish 'annotationUpdated', $scope.$modelValue
$scope.reply = ->
unless annotator.plugins.Auth.haveValidToken()
unless annotator.plugins.Auth? and annotator.plugins.Auth.haveValidToken()
$rootScope.$broadcast 'showAuth', true
return
......@@ -338,7 +338,7 @@ class Viewer
else
$scope.detail = false
$scope.focus $scope.annotations
angular.module('h.controllers', [])
.controller('AppController', App)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment