@vyr/remote 0.0.34 → 0.0.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyr/remote",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
package/src/Bridge.ts CHANGED
@@ -60,7 +60,7 @@ class Bridge {
60
60
  if (this._remote) return
61
61
  clearTimeout(this._readyId)
62
62
  //@ts-ignore
63
- this._readyId = setTimeout(() => this.checkReady(remote), 1000)
63
+ this._readyId = window.setTimeout(() => this.checkReady(remote), 1000)
64
64
  this.pipe(remote, new Job.bridge.connection.Response({}))
65
65
  }
66
66
 
@@ -73,7 +73,7 @@ class Bridge {
73
73
  }
74
74
  private onDisconnect = () => {
75
75
  clearTimeout(this._closeId)
76
- this._closeId = setTimeout(this.checkWindowClosed, 5000) as unknown as number
76
+ this._closeId = window.setTimeout(this.checkWindowClosed, 5000) as unknown as number
77
77
  this.connected = new AsyncTask()
78
78
  const remote = this._remote
79
79
  //@ts-ignore
@@ -16,7 +16,7 @@ const pickupObject = (process: RemoteProcess) => {
16
16
  let count = 0
17
17
  const beforePickup = (event: MouseEvent) => {
18
18
  if (count === 0) {
19
- setTimeout(() => pickup(event), 250)
19
+ window.setTimeout(() => pickup(event), 250)
20
20
  }
21
21
  count++
22
22
  }