gscatterjs-core
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,1 +1,5 @@ | ||
## 0.3.0 | ||
zh-CN: | ||
1.移除getEnv,因为不是gscatter-js应该提供的功能,开发者可以根据ua自行判断,如果想判断布洛克城,可以在应用配置url上面加上`from=blockcity`来自行判断。 | ||
## 0.2.0 | ||
@@ -2,0 +6,0 @@ zh-CN: |
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _BlockcityService=require("../services/BlockcityService"),_i18n=_interopRequireDefault(require("./i18n"));Object.defineProperty(exports,"__esModule",{value:!0}),exports.blockcityGlobalInject=blockcityGlobalInject;function compareVersion(a,b){var c=a.split("."),d=b.split(".");return 1e6*c[0]+1e3*c[1]+parseInt(c[2])<=1e6*d[0]+1e3*d[1]+parseInt(d[2])}function blockcityGlobalInject(){window.isSupportGScatter=function(a){(0,_BlockcityService.getDeviceInfo)(function(b){var c=b.version;// if less than 2.0.3, not support gscatter | ||
compareVersion("2.0.3",c)||a(b)})},window.notSupportGScatterCallback=function(a){alert((0,_i18n.default)("not_support",a.appLanguage))}} | ||
compareVersion("2.0.3",c)||a(b)})},window.notSupportGScatterCallback=window.notSupportGScatterCallback||function(a){alert((0,_i18n.default)("not_support",a.appLanguage))}} |
{ | ||
"name": "gscatterjs-core", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "dist/index.js", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8ef1d8fe213c3736c1f5df8ca78e2cb132d52a2d" | ||
"gitHead": "0e56b707e689e813226783acaa293396cfe08b5f" | ||
} |
@@ -21,5 +21,6 @@ import { getDeviceInfo } from '../services/BlockcityService' | ||
window.notSupportGScatterCallback = function (appInfo) { | ||
// allow developer overide | ||
window.notSupportGScatterCallback = window.notSupportGScatterCallback || function (appInfo) { | ||
alert(i18n('not_support', appInfo.appLanguage)) | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173614
1006