소스 검색

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