@subwallet/extension-inject 1.3.45-1 → 1.3.46-0
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.
- package/bundle.js +1 -9
- package/cjs/bundle.js +1 -9
- package/cjs/packageInfo.js +1 -1
- package/package.json +1 -1
- package/packageInfo.js +1 -1
package/bundle.js
CHANGED
|
@@ -27,15 +27,7 @@ export function injectExtension(enable, {
|
|
|
27
27
|
export function injectEvmExtension(evmProvider) {
|
|
28
28
|
// small helper with the typescript types, just cast window
|
|
29
29
|
const windowInject = window;
|
|
30
|
-
|
|
31
|
-
// add our enable function
|
|
32
|
-
if (windowInject.SubWallet) {
|
|
33
|
-
// Provider has been initialized in proxy mode
|
|
34
|
-
windowInject.SubWallet.provider = evmProvider;
|
|
35
|
-
} else {
|
|
36
|
-
// Provider has been initialized in direct mode
|
|
37
|
-
windowInject.SubWallet = evmProvider;
|
|
38
|
-
}
|
|
30
|
+
windowInject.SubWallet = evmProvider;
|
|
39
31
|
if (!windowInject.ethereum) {
|
|
40
32
|
windowInject.ethereum = evmProvider;
|
|
41
33
|
windowInject.dispatchEvent(new Event('ethereum#initialized'));
|
package/cjs/bundle.js
CHANGED
|
@@ -43,15 +43,7 @@ function injectExtension(enable, _ref) {
|
|
|
43
43
|
function injectEvmExtension(evmProvider) {
|
|
44
44
|
// small helper with the typescript types, just cast window
|
|
45
45
|
const windowInject = window;
|
|
46
|
-
|
|
47
|
-
// add our enable function
|
|
48
|
-
if (windowInject.SubWallet) {
|
|
49
|
-
// Provider has been initialized in proxy mode
|
|
50
|
-
windowInject.SubWallet.provider = evmProvider;
|
|
51
|
-
} else {
|
|
52
|
-
// Provider has been initialized in direct mode
|
|
53
|
-
windowInject.SubWallet = evmProvider;
|
|
54
|
-
}
|
|
46
|
+
windowInject.SubWallet = evmProvider;
|
|
55
47
|
if (!windowInject.ethereum) {
|
|
56
48
|
windowInject.ethereum = evmProvider;
|
|
57
49
|
windowInject.dispatchEvent(new Event('ethereum#initialized'));
|
package/cjs/packageInfo.js
CHANGED
package/package.json
CHANGED
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@subwallet/extension-inject',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '1.3.
|
|
10
|
+
version: '1.3.46-0'
|
|
11
11
|
};
|