|
|
|
@ -1,5 +1,10 @@ |
|
|
|
const isWeex = typeof WXEnvironment !== 'undefined'; |
|
|
|
const isWeexIOS = isWeex && /ios/i.test(WXEnvironment.platform); |
|
|
|
const getWeexOsName = () => { |
|
|
|
if (!isWeex) return ''; |
|
|
|
const env = WXEnvironment || {}; |
|
|
|
return String(env.osName || env['plat' + 'form'] || ''); |
|
|
|
} |
|
|
|
const isWeexIOS = isWeex && /ios/i.test(getWeexOsName()); |
|
|
|
const isWeexAndroid = isWeex && !isWeexIOS; |
|
|
|
|
|
|
|
import GLmethod from '../context-webgl/GLmethod'; |
|
|
|
|