Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -990,7 +990,7 @@ |
991 | 991 | // Allow calling with an external script or single dependency as a string |
992 | 992 | if ( typeof modules === 'string' ) { |
993 | 993 | // Support adding arbitrary external scripts |
994 | | - if ( modules.substr( 0, 7 ) === 'http://' || modules.substr( 0, 8 ) === 'https://' ) { |
| 994 | + if ( modules.substr( 0, 7 ) === 'http://' || modules.substr( 0, 8 ) === 'https://' || modules.substr( 0, 2 ) === '//' ) { |
995 | 995 | if ( type === 'text/css' ) { |
996 | 996 | $( 'head' ).append( $( '<link/>', { |
997 | 997 | rel: 'stylesheet', |