Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/resources/mw.Api.js |
— | — | @@ -241,8 +241,8 @@ |
242 | 242 | * false if the domain is |
243 | 243 | */ |
244 | 244 | mw.isLocalDomain = function( url ) { |
245 | | - if( new mw.Uri( document.URL ).host == new mw.Uri( url ).host |
246 | | - || url.indexOf( '://' ) == -1 ) |
| 245 | + if( url.indexOf('://') == -1 || |
| 246 | + new mw.Uri( document.URL ).host == new mw.Uri( url ).host ) |
247 | 247 | { |
248 | 248 | return true; |
249 | 249 | } |
— | — | @@ -375,4 +375,4 @@ |
376 | 376 | return false; |
377 | 377 | }; |
378 | 378 | |
379 | | -}) ( window.mediaWiki, window.jQuery ); |
\ No newline at end of file |
| 379 | +}) ( window.mediaWiki, window.jQuery ); |