Index: trunk/extensions/CodeReview/modules/ext.codereview.loaddiff.js |
— | — | @@ -21,9 +21,11 @@ |
22 | 22 | } |
23 | 23 | }); |
24 | 24 | } catch ( e ) { |
| 25 | + removeSpinner( 'codereview-diff' ); |
25 | 26 | if ( window.location.hostname == 'localhost' ) { |
26 | 27 | alert( 'Your browser blocks XMLHttpRequest to "localhost", try using a real hostname for development/testing.' ); |
27 | 28 | } |
| 29 | + CodeReview.setDiff( 'Diff load failed!' ); |
28 | 30 | throw e; |
29 | 31 | } |
30 | 32 | }, |