@onekeyfe/inpage-providers-hub 1.1.4 → 1.1.6

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.
@@ -9,7 +9,7 @@ const consts_1 = require("../consts");
9
9
  replaceMethod() {
10
10
  const replaceFunc = ({ findName, findIconText, icon, text, }) => {
11
11
  var _a;
12
- const img = document.querySelector(`div.modal.show li > button > img[alt="${findIconText}"]`);
12
+ const img = document.querySelector(`#headlessui-portal-root li > button > img[alt="${findIconText}"]`);
13
13
  if (img && img.src) {
14
14
  img.src = icon;
15
15
  const span = (_a = img.nextSibling) === null || _a === void 0 ? void 0 : _a.querySelector('span');
@@ -7,7 +7,7 @@ hackConnectButton({
7
7
  replaceMethod() {
8
8
  const replaceFunc = ({ findName, findIconText, icon, text, }) => {
9
9
  var _a;
10
- const img = document.querySelector(`div.modal.show li > button > img[alt="${findIconText}"]`);
10
+ const img = document.querySelector(`#headlessui-portal-root li > button > img[alt="${findIconText}"]`);
11
11
  if (img && img.src) {
12
12
  img.src = icon;
13
13
  const span = (_a = img.nextSibling) === null || _a === void 0 ? void 0 : _a.querySelector('span');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/inpage-providers-hub",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -28,16 +28,16 @@
28
28
  "start": "tsc --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@onekeyfe/cross-inpage-provider-core": "1.1.4",
32
- "@onekeyfe/cross-inpage-provider-types": "1.1.4",
33
- "@onekeyfe/onekey-aptos-provider": "1.1.4",
34
- "@onekeyfe/onekey-conflux-provider": "1.1.4",
35
- "@onekeyfe/onekey-eth-provider": "1.1.4",
36
- "@onekeyfe/onekey-private-provider": "1.1.4",
37
- "@onekeyfe/onekey-solana-provider": "1.1.4",
38
- "@onekeyfe/onekey-starcoin-provider": "1.1.4",
39
- "@onekeyfe/onekey-tron-provider": "1.1.4",
31
+ "@onekeyfe/cross-inpage-provider-core": "1.1.6",
32
+ "@onekeyfe/cross-inpage-provider-types": "1.1.6",
33
+ "@onekeyfe/onekey-aptos-provider": "1.1.6",
34
+ "@onekeyfe/onekey-conflux-provider": "1.1.6",
35
+ "@onekeyfe/onekey-eth-provider": "1.1.6",
36
+ "@onekeyfe/onekey-private-provider": "1.1.6",
37
+ "@onekeyfe/onekey-solana-provider": "1.1.6",
38
+ "@onekeyfe/onekey-starcoin-provider": "1.1.6",
39
+ "@onekeyfe/onekey-tron-provider": "1.1.6",
40
40
  "web3": "^1.7.3"
41
41
  },
42
- "gitHead": "3dac702516b0f256787a29d2dd373440d3a60f8c"
42
+ "gitHead": "74a047c11aa3bbc20e3b3cc0dac84eea9447083c"
43
43
  }