@0xsequence/provider 0.35.3 → 0.35.4

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.
@@ -1455,10 +1455,7 @@ class WindowMessageProvider extends BaseProviderTransport {
1455
1455
 
1456
1456
  if (isBrowserExtension()) {
1457
1457
  windowSize = [450, 750];
1458
- windowPos = [window.screenX, window.screenY]; // windowPos = [
1459
- // Math.abs(window.screen.width / 2 - windowSize[0] / 2),
1460
- // Math.abs(window.screen.height / 2 - windowSize[1] / 2)
1461
- // ]
1458
+ windowPos = [Math.abs(window.screen.width / 2 - windowSize[0] / 2), Math.abs(window.screen.height / 2 - windowSize[1] / 2)];
1462
1459
  } else {
1463
1460
  windowSize = [450, 750];
1464
1461
  windowPos = [Math.abs(window.screenX + window.innerWidth / 2 - windowSize[0] / 2), Math.abs(window.screenY + window.innerHeight / 2 - windowSize[1] / 2)];
@@ -1455,10 +1455,7 @@ class WindowMessageProvider extends BaseProviderTransport {
1455
1455
 
1456
1456
  if (isBrowserExtension()) {
1457
1457
  windowSize = [450, 750];
1458
- windowPos = [window.screenX, window.screenY]; // windowPos = [
1459
- // Math.abs(window.screen.width / 2 - windowSize[0] / 2),
1460
- // Math.abs(window.screen.height / 2 - windowSize[1] / 2)
1461
- // ]
1458
+ windowPos = [Math.abs(window.screen.width / 2 - windowSize[0] / 2), Math.abs(window.screen.height / 2 - windowSize[1] / 2)];
1462
1459
  } else {
1463
1460
  windowSize = [450, 750];
1464
1461
  windowPos = [Math.abs(window.screenX + window.innerWidth / 2 - windowSize[0] / 2), Math.abs(window.screenY + window.innerHeight / 2 - windowSize[1] / 2)];
@@ -1451,10 +1451,7 @@ class WindowMessageProvider extends BaseProviderTransport {
1451
1451
 
1452
1452
  if (isBrowserExtension()) {
1453
1453
  windowSize = [450, 750];
1454
- windowPos = [window.screenX, window.screenY]; // windowPos = [
1455
- // Math.abs(window.screen.width / 2 - windowSize[0] / 2),
1456
- // Math.abs(window.screen.height / 2 - windowSize[1] / 2)
1457
- // ]
1454
+ windowPos = [Math.abs(window.screen.width / 2 - windowSize[0] / 2), Math.abs(window.screen.height / 2 - windowSize[1] / 2)];
1458
1455
  } else {
1459
1456
  windowSize = [450, 750];
1460
1457
  windowPos = [Math.abs(window.screenX + window.innerWidth / 2 - windowSize[0] / 2), Math.abs(window.screenY + window.innerHeight / 2 - windowSize[1] / 2)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/provider",
3
- "version": "0.35.3",
3
+ "version": "0.35.4",
4
4
  "description": "provider sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
6
6
  "source": "src/index.ts",
@@ -13,13 +13,13 @@
13
13
  "typecheck": "tsc --noEmit"
14
14
  },
15
15
  "dependencies": {
16
- "@0xsequence/abi": "^0.35.3",
17
- "@0xsequence/auth": "^0.35.3",
18
- "@0xsequence/config": "^0.35.3",
19
- "@0xsequence/network": "^0.35.3",
20
- "@0xsequence/transactions": "^0.35.3",
21
- "@0xsequence/utils": "^0.35.3",
22
- "@0xsequence/wallet": "^0.35.3",
16
+ "@0xsequence/abi": "^0.35.4",
17
+ "@0xsequence/auth": "^0.35.4",
18
+ "@0xsequence/config": "^0.35.4",
19
+ "@0xsequence/network": "^0.35.4",
20
+ "@0xsequence/transactions": "^0.35.4",
21
+ "@0xsequence/utils": "^0.35.4",
22
+ "@0xsequence/wallet": "^0.35.4",
23
23
  "@ethersproject/abstract-signer": "^5.5.0",
24
24
  "@ethersproject/hash": "^5.5.0",
25
25
  "@ethersproject/providers": "^5.5.1",
@@ -106,11 +106,10 @@ export class WindowMessageProvider extends BaseProviderTransport {
106
106
 
107
107
  if (isBrowserExtension()) {
108
108
  windowSize = [450, 750]
109
- windowPos = [window.screenX, window.screenY]
110
- // windowPos = [
111
- // Math.abs(window.screen.width / 2 - windowSize[0] / 2),
112
- // Math.abs(window.screen.height / 2 - windowSize[1] / 2)
113
- // ]
109
+ windowPos = [
110
+ Math.abs(window.screen.width / 2 - windowSize[0] / 2),
111
+ Math.abs(window.screen.height / 2 - windowSize[1] / 2)
112
+ ]
114
113
  } else {
115
114
  windowSize = [450, 750]
116
115
  windowPos = [