Преглед на файлове

Fix exception in Router#isIndex

Thibaut Courouble преди 8 години
родител
ревизия
c42ef5dc29
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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