Explorar o código

Fix exception in Router#isIndex

Thibaut Courouble %!s(int64=8) %!d(string=hai) anos
pai
achega
c42ef5dc29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      assets/javascripts/app/router.coffee

+ 1 - 1
assets/javascripts/app/router.coffee

@@ -113,7 +113,7 @@ class app.Router
     return
 
   isIndex: ->
-    @context.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex())
+    @context?.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex())
 
   setInitialPath: ->
     # Remove superfluous forward slashes at the beginning of the path