Unified · Split
| @@ -56,6 +56,11 @@ · 55 unmodified lines | ||
| 56 | 56 | tags: |
| 57 | 57 | mode: if @DOC then 'single' else 'full' |
| 58 | 58 | iframe: (window.top isnt window).toString() |
| 59 | + shouldSendCallback: -> | |
| 60 | + if @isInjectionError() | |
| 61 | + @onInjectionError() | |
| 62 | + return false | |
| 63 | + true | |
| 59 | 64 | dataCallback: (data) -> |
| 60 | 65 | try |
| 61 | 66 | $.extend(data.user ||= {}, app.settings.settings) |
| @@ -215,7 +220,7 @@ · 153 unmodified lines | ||
| 215 | 220 | isInjectionError: -> |
| 216 | 221 | # Some browser extensions expect the entire web to use jQuery. |
| 217 | 222 | # I gave up trying to fight back. |
| 218 | − window.$ isnt app._$ or window.$$ isnt app._$$ or window.page isnt app._page | |
| 223 | + window.$ isnt app._$ or window.$$ isnt app._$$ or window.page isnt app._page or typeof $.empty isnt 'function' or typeof page.show isnt 'function' | |
| 219 | 224 | |
| 220 | 225 | isAppError: (error, file) -> |
| 221 | 226 | # Ignore errors from external scripts. |