Revision 565d9620 cloudcms/static/cloudcms/js/os.js
b/cloudcms/static/cloudcms/js/os.js | ||
---|---|---|
1 |
//http://www.quirksmode.org/js/detect.html |
|
1 | 2 |
var BrowserDetect = { |
2 | 3 |
init: function () { |
3 | 4 |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; |
... | ... | |
94 | 95 |
{ |
95 | 96 |
string: navigator.platform, |
96 | 97 |
subString: "Win", |
97 |
identity: "Windows"
|
|
98 |
identity: "windows"
|
|
98 | 99 |
}, |
99 | 100 |
{ |
100 | 101 |
string: navigator.platform, |
101 | 102 |
subString: "Mac", |
102 |
identity: "Mac" |
|
103 |
identity: "MacOS"
|
|
103 | 104 |
}, |
104 | 105 |
{ |
105 | 106 |
string: navigator.userAgent, |
106 | 107 |
subString: "iPhone", |
107 |
identity: "iPhone/iPod"
|
|
108 |
identity: "iPhone" |
|
108 | 109 |
}, |
109 | 110 |
{ |
110 | 111 |
string: navigator.platform, |
111 | 112 |
subString: "Linux", |
112 |
identity: "Linux"
|
|
113 |
identity: "linux"
|
|
113 | 114 |
} |
114 | 115 |
] |
115 | 116 |
|
Also available in: Unified diff