@fonixtree/magic-design 0.1.75 → 0.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,8 @@ var browserVersion = function browserVersion() {
21
21
  webApp: u.indexOf('Safari') == -1,
22
22
  weixin: u.indexOf('MicroMessenger') > -1,
23
23
  qq: u.match(/\sQQ/i) == ' qq',
24
- isApp: u.indexOf('app/CYLON-APP') > -1
24
+ isApp: u.indexOf('app/CYLON-APP') > -1,
25
+ isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
25
26
  };
26
27
  };
27
28
 
@@ -749,7 +749,7 @@ var convertToRem = function convertToRem(value) {
749
749
  }
750
750
 
751
751
  var baseFont = ensure(function () {
752
- return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px');
752
+ return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
753
753
  }, 50);
754
754
  var pxValue = parseFloat(value);
755
755
  var remValue = pxValue / baseFont; // 假设1rem = 50px
@@ -304,7 +304,7 @@ var clickUrl = function clickUrl(url) {
304
304
  var _b = data.params,
305
305
  params = _b === void 0 ? {} : _b;
306
306
 
307
- if ((0, _androidUtil.browserVersion)().isApp) {
307
+ if ((0, _androidUtil.browserVersion)().isAshitaApp) {
308
308
  (0, _androidUtil.sendToApp)(data);
309
309
  } else {
310
310
  // 视频
@@ -21,7 +21,8 @@ var browserVersion = function browserVersion() {
21
21
  webApp: u.indexOf('Safari') == -1,
22
22
  weixin: u.indexOf('MicroMessenger') > -1,
23
23
  qq: u.match(/\sQQ/i) == ' qq',
24
- isApp: u.indexOf('app/CYLON-APP') > -1
24
+ isApp: u.indexOf('app/CYLON-APP') > -1,
25
+ isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
25
26
  };
26
27
  };
27
28
 
@@ -749,7 +749,7 @@ var convertToRem = function convertToRem(value) {
749
749
  }
750
750
 
751
751
  var baseFont = ensure(function () {
752
- return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px');
752
+ return window.getComputedStyle(document.getElementsByTagName('html')[0]).fontSize.replace('px', '');
753
753
  }, 50);
754
754
  var pxValue = parseFloat(value);
755
755
  var remValue = pxValue / baseFont; // 假设1rem = 50px
@@ -304,7 +304,7 @@ var clickUrl = function clickUrl(url) {
304
304
  var _b = data.params,
305
305
  params = _b === void 0 ? {} : _b;
306
306
 
307
- if ((0, _androidUtil.browserVersion)().isApp) {
307
+ if ((0, _androidUtil.browserVersion)().isAshitaApp) {
308
308
  (0, _androidUtil.sendToApp)(data);
309
309
  } else {
310
310
  // 视频
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.75",
4
+ "version": "0.1.77",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",