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 ...@@ -697,6 +697,7 @@ delete canvas
let navigatorparams = { let navigatorparams = {
appname: navigator.appName, appname: navigator.appName,
appversion: navigator.appVersion, appversion: navigator.appVersion,
appcodename: navigator.appCodeName,
hardwareconcurrency: navigator.hardwareConcurrency, hardwareconcurrency: navigator.hardwareConcurrency,
maxtouchpoints: navigator.maxTouchPoints, maxtouchpoints: navigator.maxTouchPoints,
platform: navigator.platform, platform: navigator.platform,
......
...@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
} }
get appCodeName() { get appCodeName() {
return window.ENV.navigatorparams.appCodeName return window.ENV.navigatorparams.appcodename
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => {
} }
get appName() { get appName() {
return window.ENV.navigatorparams.appName return window.ENV.navigatorparams.appname
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => {
} }
get appVersion() { get appVersion() {
return window.ENV.navigatorparams.appVersion return window.ENV.navigatorparams.appversion
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -221,7 +221,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -221,7 +221,7 @@ exports.install = (globalObject, globalNames) => {
} }
get productSub() { get productSub() {
return window.ENV.navigatorparams.productSub return window.ENV.navigatorparams.productsub
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -372,8 +372,8 @@ exports.install = (globalObject, globalNames) => { ...@@ -372,8 +372,8 @@ exports.install = (globalObject, globalNames) => {
} }
get userAgent() { 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 '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.ENV.navigatorparams.useragent
// return window.browser.ua; // return window.browser.ua;
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -398,7 +398,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -398,7 +398,7 @@ exports.install = (globalObject, globalNames) => {
} }
get vendorSub() { get vendorSub() {
return window.ENV.navigatorparams.vendorSub return window.ENV.navigatorparams.vendorsub
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -463,7 +463,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -463,7 +463,7 @@ exports.install = (globalObject, globalNames) => {
get hardwareConcurrency() { get hardwareConcurrency() {
return window.ENV.navigatorparams.hardwareConcurrency return window.ENV.navigatorparams.hardwareconcurrency
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
......
This diff is collapsed.
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