Unified · Split
| @@ -105,8 +105,10 @@ · 104 unmodified lines | |||
| 105 | @trigger 'ready' | 105 | @trigger 'ready' |
| 106 | @router.start() | 106 | @router.start() |
| 107 | @hideLoading() | 107 | @hideLoading() |
| 108 | @welcomeBack() unless @doc | 108 | setTimeout => |
| 109 | @removeEvent 'ready bootError' | 109 | @welcomeBack() unless @doc |
| 110 | @removeEvent 'ready bootError' | ||
| 111 | , 50 | ||
| 110 | return | 112 | return |
| 111 | 113 | ||
| 112 | initDoc: (doc) -> | 114 | initDoc: (doc) -> |
| @@ -5,7 +5,7 @@ class app.UpdateChecker · 4 unmodified lines | |||
| 5 | $.on window, 'focus', @checkForUpdate | 5 | $.on window, 'focus', @checkForUpdate |
| 6 | app.appCache.on 'updateready', @onUpdateReady if app.appCache | 6 | app.appCache.on 'updateready', @onUpdateReady if app.appCache |
| 7 | 7 | ||
| 8 | @checkDocs() | 8 | setTimeout @checkDocs, 0 |
| 9 | 9 | ||
| 10 | check: -> | 10 | check: -> |
| 11 | if app.appCache | 11 | if app.appCache |
| @@ -21,7 +21,7 @@ class app.UpdateChecker · 9 unmodified lines | |||
| 21 | new app.views.Notif 'UpdateReady', autoHide: null | 21 | new app.views.Notif 'UpdateReady', autoHide: null |
| 22 | return | 22 | return |
| 23 | 23 | ||
| 24 | checkDocs: -> | 24 | checkDocs: => |
| 25 | unless app.settings.get('manualUpdate') | 25 | unless app.settings.get('manualUpdate') |
| 26 | app.docs.updateInBackground() | 26 | app.docs.updateInBackground() |
| 27 | else | 27 | else |
| @@ -135,7 +135,8 @@ class app.views.Search extends app.View · 134 unmodified lines | |||
| 135 | 135 | ||
| 136 | afterRoute: (name, context) => | 136 | afterRoute: (name, context) => |
| 137 | @delay @searchUrl if context.hash | 137 | @delay @searchUrl if context.hash |
| 138 | @autoFocus() | 138 | @delay @autoFocus |
| 139 | return | ||
| 139 | 140 | ||
| 140 | extractHashValue: -> | 141 | extractHashValue: -> |
| 141 | if (value = @getHashValue())? | 142 | if (value = @getHashValue())? |