Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | */ |
6 | 6 | var urlparts = getRemoteEmbedPath(); |
7 | 7 | var mwEmbedHostPath = urlparts[0]; |
8 | | -var mwRemoteVersion = 'r131'; |
| 8 | +var mwRemoteVersion = 'r132'; |
9 | 9 | var mwUseScriptLoader = true; |
10 | 10 | |
11 | 11 | // Log the mwRemote version makes it easy to debug cache issues |
— | — | @@ -23,11 +23,18 @@ |
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
| 27 | +// Allow the document.URL to trigger the debug flag with "debug=true" in its url |
| 28 | +if( document.URL.indexOf( 'debug=true' ) !== -1 ){ |
| 29 | + mwReqParam['debug'] = true; |
| 30 | +} |
| 31 | + |
27 | 32 | // Check if debug mode and disable script grouping |
28 | 33 | if( mwReqParam['debug'] ) { |
29 | 34 | mwUseScriptLoader = false; |
30 | 35 | } |
31 | 36 | |
| 37 | + |
| 38 | + |
32 | 39 | // Setup up some globals to wrap mwEmbed mw.ready and mw.setConfig functions |
33 | 40 | |
34 | 41 | //Setup preMwEmbedReady queue |