mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 576110: Show saved thumbnails at browser startup if tab candy was last open
This commit is contained in:
parent
a04cd8087e
commit
764afcb66c
@ -647,8 +647,12 @@ var Utils = {
|
||||
|
||||
// ___ Is Mac
|
||||
isMac: function() {
|
||||
if (this._isMac == null)
|
||||
this._isMac = (navigator.platform.search(/mac/i) > -1);
|
||||
if (this._isMac == null) {
|
||||
var xulRuntime =
|
||||
Components.classes["@mozilla.org/xre/app-info;1"].
|
||||
getService(Components.interfaces.nsIXULRuntime);
|
||||
this._isMac = (xulRuntime.OS == "Darwin");
|
||||
}
|
||||
|
||||
return this._isMac;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user