Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed Sep 8, 2023
1 parent 5b39a6e commit 2f98cdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"dependencies": {
"js-cookie": "^3.0.5",
"live-connect-common": "^3.0.0"
"live-connect-common": "v3.0.1-alpha-2ef8d07.0"
},
"devDependencies": {
"@rollup/plugin-strip": "^3.0.2",
Expand Down
7 changes: 6 additions & 1 deletion src/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ export class DefaultCallHandler implements CallHandler {
}

try {
const startTime = Date.now()
const request = (window && window.XDomainRequest) ? xdrCall() : xhrCall()
request.ontimeout = () => errorCallback(`Timeout after ${timeout}, url : ${url}`)

request.ontimeout = () => {
const duration = Date.now() - startTime
errorCallback(`Timeout after ${duration} (${timeout}), url: ${url}`)
}
request.open('GET', url, true)
request.timeout = timeout
request.withCredentials = true
Expand Down

0 comments on commit 2f98cdf

Please sign in to comment.