Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -65,17 +65,17 @@ class app.views.OfflinePage extends app.View · 64 unmodified lines | ||
| 65 | 65 | return unless @activated |
| 66 | 66 | doc.getInstallStatus (status) => |
| 67 | 67 | return unless @activated |
| 68 | − el = @docEl(doc) | |
| 69 | − el.outerHTML = @renderDoc(doc, status) | |
| 70 | − $.highlight el, className: '_highlight' | |
| 71 | − @refreshLinks() | |
| 68 | + if el = @docEl(doc) | |
| 69 | + el.outerHTML = @renderDoc(doc, status) | |
| 70 | + $.highlight el, className: '_highlight' | |
| 71 | + @refreshLinks() | |
| 72 | 72 | return |
| 73 | 73 | return |
| 74 | 74 | |
| 75 | 75 | onInstallError: (doc) -> |
| 76 | 76 | return unless @activated |
| 77 | − el = @docEl(doc) | |
| 78 | − el.lastElementChild.textContent = 'Error' | |
| 77 | + if el = @docEl(doc) | |
| 78 | + el.lastElementChild.textContent = 'Error' | |
| 79 | 79 | return |
| 80 | 80 | |
| 81 | 81 | onChange: (event) -> |