@arcblock/ux 2.10.15 → 2.10.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,6 +109,11 @@ function NFTDisplay({
109
109
  t
110
110
  } = {}) => {
111
111
  const urlObj = new URL(content);
112
+
113
+ // check protocol
114
+ if (window.location.protocol === 'https:' && urlObj.protocol === 'http:') {
115
+ urlObj.protocol = 'https:';
116
+ }
112
117
  if (!urlObj.searchParams.has('assetId')) {
113
118
  urlObj.searchParams.append('assetId', address);
114
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.10.15",
3
+ "version": "2.10.16",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -54,12 +54,12 @@
54
54
  "react": ">=18.2.0",
55
55
  "react-router-dom": ">=6.22.3"
56
56
  },
57
- "gitHead": "b1c72a6e908b2e4621a64ac5cf3b565d6712c71b",
57
+ "gitHead": "4e446d45fbf0db374ffe0ebc9ba0b9dce08fbe0a",
58
58
  "dependencies": {
59
59
  "@arcblock/did-motif": "^1.1.13",
60
- "@arcblock/icons": "^2.10.15",
61
- "@arcblock/nft-display": "^2.10.15",
62
- "@arcblock/react-hooks": "^2.10.15",
60
+ "@arcblock/icons": "^2.10.16",
61
+ "@arcblock/nft-display": "^2.10.16",
62
+ "@arcblock/react-hooks": "^2.10.16",
63
63
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
64
64
  "@fontsource/inter": "^5.0.16",
65
65
  "@fontsource/ubuntu-mono": "^5.0.18",
@@ -102,6 +102,12 @@ function NFTDisplay({
102
102
  // assemble the complete url
103
103
  const getFullContentUrl = ({ useImageFilter = false, t } = {}) => {
104
104
  const urlObj = new URL(content);
105
+
106
+ // check protocol
107
+ if (window.location.protocol === 'https:' && urlObj.protocol === 'http:') {
108
+ urlObj.protocol = 'https:';
109
+ }
110
+
105
111
  if (!urlObj.searchParams.has('assetId')) {
106
112
  urlObj.searchParams.append('assetId', address);
107
113
  }