Skip to content

Commit dc97eea

Browse files
committed
Increase default timeout to 5000ms
1 parent 210c846 commit dc97eea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Constructs a new cross storage client given the url to a hub. By default,
141141
an iframe is created within the document body that points to the url. It
142142
also accepts an options object, which may include a timeout, frameId, and
143143
promise. The timeout, in milliseconds, is applied to each request and
144-
defaults to 3000ms. The options object may also include a frameId,
144+
defaults to 5000ms. The options object may also include a frameId,
145145
identifying an existing frame on which to install its listeners. If the
146146
promise key is supplied the constructor for a Promise, that Promise library
147147
will be used instead of the default window.Promise.

lib/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* an iframe is created within the document body that points to the url. It
55
* also accepts an options object, which may include a timeout, frameId, and
66
* promise. The timeout, in milliseconds, is applied to each request and
7-
* defaults to 3000ms. The options object may also include a frameId,
7+
* defaults to 5000ms. The options object may also include a frameId,
88
* identifying an existing frame on which to install its listeners. If the
99
* promise key is supplied the constructor for a Promise, that Promise library
1010
* will be used instead of the default window.Promise.
@@ -46,7 +46,7 @@
4646
this._connected = false;
4747
this._closed = false;
4848
this._count = 0;
49-
this._timeout = opts.timeout || 3000;
49+
this._timeout = opts.timeout || 5000;
5050
this._listener = null;
5151

5252
this._installListener();

0 commit comments

Comments
 (0)