Index: branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js |
— | — | @@ -393,6 +393,9 @@ |
394 | 394 | mw.log('mwCheckForGadget'); |
395 | 395 | scripts = document.getElementsByTagName( 'script' ); |
396 | 396 | // Check for document paramater withJS and ignore found gadget |
| 397 | + if( typeof getParamValue == 'undefined' ){ |
| 398 | + return false; |
| 399 | + } |
397 | 400 | var withJS = getParamValue("withJS"); |
398 | 401 | |
399 | 402 | for( var i = 0 ; i < scripts.length ; i ++){ |