History

Fix exception in OfflinePage#onInstallSuccess

Thibaut committed 11 years ago

Commit cf04efe1 parent b50a84e1 file · +6 −6Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/views/content/offline_page.coffee+6−6
@@ -65,17 +65,17 @@ class app.views.OfflinePage extends app.View · 64 unmodified lines
65 return unless @activated65 return unless @activated
66 doc.getInstallStatus (status) =>66 doc.getInstallStatus (status) =>
67 return unless @activated67 return unless @activated
68 el = @docEl(doc)68 if el = @docEl(doc)
69 el.outerHTML = @renderDoc(doc, status)69 el.outerHTML = @renderDoc(doc, status)
70 $.highlight el, className: '_highlight'70 $.highlight el, className: '_highlight'
71 @refreshLinks()71 @refreshLinks()
72 return72 return
73 return73 return
74 74
75 onInstallError: (doc) ->75 onInstallError: (doc) ->
76 return unless @activated76 return unless @activated
77 el = @docEl(doc)77 if el = @docEl(doc)
78 el.lastElementChild.textContent = 'Error'78 el.lastElementChild.textContent = 'Error'
79 return79 return
80 80
81 onChange: (event) ->81 onChange: (event) ->