为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can i differentiate Nightly is opened in Metro or Desktop mode in javascript?

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Matt Brubeck

more options

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.

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)

more options

Fixed. It was due to the plugin, but the js, tiny_mce.js

spellcheck = 1 -> Works

more options

I am not able to understand the solution. Could you please provide a code snippet for that...

more options

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.

more options

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:

https://bugzilla.mozilla.org/show_bug.cgi?id=938722