Let platform be a self-invoked function
This commit is contained in:
parent
d7db764361
commit
3ad70863f1
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ utils.platform = (function () {
|
|||
platform.current =
|
||||
platform.msie ? 'msie' : platform.mozilla ? 'mozilla' : platform.chrome ? 'chrome' : platform.safari ? 'safari' : platform.opera ? 'opera' : platform.mobileSafari ? 'mobile-safari' : platform.android ? 'android' : 'unknown'
|
||||
|
||||
function platformName(candidates) {
|
||||
function platformName (candidates) {
|
||||
for (let i = 0; i < candidates.length; i++) {
|
||||
if (candidates[i] in window) {
|
||||
return 'window.' + candidates[i]
|
||||
|
|
Loading…
Reference in a new issue