Commit 63a17aa9 authored by wang's avatar wang

从数据库读取环境

parent ea6d0260
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -697,6 +697,7 @@ delete canvas
let navigatorparams = {
appname: navigator.appName,
appversion: navigator.appVersion,
appcodename: navigator.appCodeName,
hardwareconcurrency: navigator.hardwareConcurrency,
maxtouchpoints: navigator.maxTouchPoints,
platform: navigator.platform,
......
......@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
}
get appCodeName() {
return window.ENV.navigatorparams.appCodeName
return window.ENV.navigatorparams.appcodename
const esValue = this !== null && this !== undefined ? this : globalObject;
......@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => {
}
get appName() {
return window.ENV.navigatorparams.appName
return window.ENV.navigatorparams.appname
const esValue = this !== null && this !== undefined ? this : globalObject;
......@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => {
}
get appVersion() {
return window.ENV.navigatorparams.appVersion
return window.ENV.navigatorparams.appversion
const esValue = this !== null && this !== undefined ? this : globalObject;
......@@ -221,7 +221,7 @@ exports.install = (globalObject, globalNames) => {
}
get productSub() {
return window.ENV.navigatorparams.productSub
return window.ENV.navigatorparams.productsub
const esValue = this !== null && this !== undefined ? this : globalObject;
......@@ -372,8 +372,8 @@ exports.install = (globalObject, globalNames) => {
}
get userAgent() {
return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36';
return window.ENV.navigatorparams.userAgent
// return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36';
return window.ENV.navigatorparams.useragent
// return window.browser.ua;
const esValue = this !== null && this !== undefined ? this : globalObject;
......@@ -398,7 +398,7 @@ exports.install = (globalObject, globalNames) => {
}
get vendorSub() {
return window.ENV.navigatorparams.vendorSub
return window.ENV.navigatorparams.vendorsub
const esValue = this !== null && this !== undefined ? this : globalObject;
......@@ -463,7 +463,7 @@ exports.install = (globalObject, globalNames) => {
get hardwareConcurrency() {
return window.ENV.navigatorparams.hardwareConcurrency
return window.ENV.navigatorparams.hardwareconcurrency
const esValue = this !== null && this !== undefined ? this : globalObject;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment