Add Zotero.isBigSurOrLater, in case we need it later
This commit is contained in:
parent
e918b430b6
commit
aeceb67a07
1 changed files with 2 additions and 1 deletions
|
@ -235,10 +235,11 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
|
|||
.getService(Components.interfaces.nsIAppShellService)
|
||||
.hiddenDOMWindow;
|
||||
this.platform = win.navigator.platform;
|
||||
this.isMac = (this.platform.substr(0, 3) == "Mac");
|
||||
this.isMac = this.platform.substr(0, 3) == "Mac";
|
||||
this.isWin = (this.platform.substr(0, 3) == "Win");
|
||||
this.isLinux = (this.platform.substr(0, 5) == "Linux");
|
||||
this.oscpu = win.navigator.oscpu;
|
||||
this.isBigSurOrLater = this.isMac && !/Mac OS X 10.([1-9]|1[0-5])/.test(win.navigator.oscpu);
|
||||
|
||||
// Browser
|
||||
Zotero.browser = "g";
|
||||
|
|
Loading…
Add table
Reference in a new issue