How can i differentiate Nightly is opened in Metro or Desktop mode in javascript?
We are developing apps using Microsoft technologies. One of our app is required plugins support. In Win8 Metro mode won't support any plug ins. So, we want to detect it and ask the user to open it in Desktop mode. This detection is done through Javascript. We can able to detect for IE. How can we detect this for Nightly? Could you please provide a solution for this.
Thanks In Advance.
Όλες οι απαντήσεις (4)
Fixed. It was due to the plugin, but the js, tiny_mce.js
spellcheck = 1 -> Works
I am not able to understand the solution. Could you please provide a code snippet for that...
Fields "wysiwyg" are based on js library "tiny_mce.js" tyny_mce.js compares if (! A.gecko_spellcheck) {z.getBody (). spellcheck = 0} ... Changing in comparing the number 0 with number 1 is solved if (! A.gecko_spellcheck) {z.getBody (). spellcheck = 1} ... You can download the library in, http://www.tinymce.com/, and view all code.
Hi, I'm one of the developers on the Firefox for Metro project. We don't yet have a recommended way for web pages to detect whether Firefox is running in Metro mode, but we'll be working on that here: