Permalink
Browse files

FoxAge2ch をタブで開いたときに In-Content UI 表示する (2)

  • Loading branch information...
1 parent 942b225 commit fd355c02c3cc5329b35b69e1e5ff5372ca51a422 @gomita committed Jan 7, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 chrome/content/foxage2ch/foxage2ch.js
@@ -92,12 +92,14 @@ var FoxAge2chUI = {
FoxAge2chService.checkUpdates("root");
document.documentElement.setAttribute("platform", navigator.platform);
document.documentElement.setAttribute("oscpu", navigator.oscpu);
- // タブで開いた場合、特別なスタイルを追加
- var win = this.windowMediator.getMostRecentWindow("navigator:browser");
- var tab = win.gBrowser._getTabForContentWindow(window);
- if (tab) {
- document.getElementById("inContentCSS").setAttribute("media", "all");
- document.documentElement.style.padding = "0px";
+ // [Windows][Linux] タブで開いた場合、特別なスタイルを追加
+ if (navigator.platform.indexOf("Mac") != 0) {
+ var win = this.windowMediator.getMostRecentWindow("navigator:browser");
+ var tab = win.gBrowser._getTabForContentWindow(window);
+ if (tab) {
+ document.getElementById("inContentCSS").setAttribute("media", "all");
+ document.documentElement.style.padding = "0px";
+ }
}
},

0 comments on commit fd355c0

Please sign in to comment.