90
edits
No edit summary |
No edit summary |
||
Line 261: | Line 261: | ||
mw.loader. | $.when( | ||
mw.loader.getScript( 'https://sarkarverse.org/index.php?title=MediaWiki:MP3Player.js&action=raw&ctype=text/javascript' ) | |||
) | |||
.then( | |||
function () { | |||
new GreenAudioPlayer('.sarkarverse-mp3-player'); | |||
}, | |||
function ( e ) { | |||
mw.log.error( e.message ); // => "Failed to load script" | |||
} | |||
); | |||
/* DO NOT ADD CODE BELOW THIS LINE */ | /* DO NOT ADD CODE BELOW THIS LINE */ |