]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/wp-mce-help.php
WordPress 4.0
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / wp-mce-help.php
index cd5e6be8caf5dd83f0cf7601e7783badc18715fd..1f4a11f8619b098c6b5038b42727f645cacb13cd 100644 (file)
@@ -95,10 +95,8 @@ header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
 </head>
 <body class="windows wp-core-ui">
 <script type="text/javascript">
-var win = window.dialogArguments || opener || parent || top;
-
-if ( win && win.tinymce && win.tinymce.isMac ) {
-       document.body.className = document.body.className.replace(/windows/, 'macos');
+if ( navigator.userAgent.indexOf( 'Mac OS' ) > -1 ) {
+       document.body.className = document.body.className.replace( /windows/, 'macos' );
 }
 </script>