Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/mediawiki/mediawiki.client.js |
— | — | @@ -12,7 +12,9 @@ |
13 | 13 | mw.isIphone = function(){ |
14 | 14 | return ( navigator.userAgent.indexOf('iPhone') != -1 && ! mw.isIpad() ); |
15 | 15 | }; |
16 | | - |
| 16 | + mw.isIE9 = function(){ |
| 17 | + return (/msie 9/.test(navigator.userAgent.toLowerCase())); |
| 18 | + } |
17 | 19 | // Uses hack described at: |
18 | 20 | // http://www.bdoran.co.uk/2010/07/19/detecting-the-iphone4-and-resolution-with-javascript-or-php/ |
19 | 21 | mw.isIphone4 = function(){ |