mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Removed Unix support
This commit is contained in:
@@ -198,11 +198,6 @@ sys.OS_MARMALADE = "Marmalade";
|
||||
* @readOnly
|
||||
*/
|
||||
sys.OS_LINUX = "Linux";
|
||||
/**
|
||||
* @property {String} OS_UNIX
|
||||
* @readOnly
|
||||
*/
|
||||
sys.OS_UNIX = "Unix";
|
||||
/**
|
||||
* @property {String} OS_BADA
|
||||
* @readOnly
|
||||
@@ -567,8 +562,7 @@ else {
|
||||
else if (iOS) osName = sys.OS_IOS;
|
||||
else if (nav.appVersion.indexOf("Mac") !== -1) osName = sys.OS_OSX;
|
||||
else if (isAndroid) osName = sys.OS_ANDROID;
|
||||
else if (nav.appVersion.indexOf("Linux") !== -1 || ua.indexOf("ubuntu") !== -1) osName = sys.OS_LINUX;
|
||||
else if (nav.appVersion.indexOf("X11") !== -1 && nav.appVersion.indexOf("Linux") === -1) osName = sys.OS_UNIX;
|
||||
else if (nav.appVersion.indexOf("Linux") !== -1 || ua.indexOf("ubuntu") !== -1 || nav.appVersion.indexOf("X11") !== -1) osName = sys.OS_LINUX;
|
||||
|
||||
/**
|
||||
* Indicate the running os name
|
||||
|
||||
Reference in New Issue
Block a user