Bug 576110: Show saved thumbnails at browser startup if tab candy was last open

This commit is contained in:
Raymond Lee 2010-07-15 10:40:46 +08:00
parent a04cd8087e
commit 764afcb66c

View File

@ -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;
}