Thread:Extension talk:MsUpload/not work on ios

on ios,it may not inject the button,because the mw.user.options.get('usebetatoolbar') still be true,but it not loader(it suppose the ios dont support the modren ui),so we cant see the really button,i added this code,it seems work to me

$(document).ready(function { //jquery      /* Check if we are in edit mode and the required modules are available and then customize the toolbar */ if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) {	//注入工具栏	mw.loader.using( 'user.options', function  { /* 在IOS它可能不会工作! */		if ( mw.user.options.get('usebetatoolbar') && $.wikiEditor.isSupported($.wikiEditor.modules.toolbar) ) { mw.loader.using( 'ext.wikiEditor.toolbar', function { createUpload(true); });	//创建现代工具栏按钮 }else{ createUpload(false); }	//创建经典工具栏 }); } });