Skip to content

Commit

Permalink
- Update deps
Browse files Browse the repository at this point in the history
- Allow non-secure contexts
  • Loading branch information
chaitanyapotti committed Jul 9, 2020
1 parent 23bafb7 commit c792ce0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 41 deletions.
83 changes: 44 additions & 39 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 @@ -29,7 +29,7 @@
"dependencies": {
"@chaitanyapotti/random-id": "^1.0.3",
"@toruslabs/fetch-node-details": "^2.3.0",
"@toruslabs/torus.js": "^2.2.1",
"@toruslabs/torus.js": "^2.2.2",
"create-hash": "^1.2.0",
"deepmerge": "^4.2.2",
"eth-json-rpc-errors": "^2.0.2",
Expand Down
1 change: 0 additions & 1 deletion src/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class Torus {
},
whiteLabel = {},
} = {}) {
if (!window.isSecureContext) throw new Error('Torus can only be used in secure contexts')
if (this.isInitalized) throw new Error('Already initialized')
const { torusUrl, logLevel } = await getTorusUrl(buildEnv, integrity)
log.info(torusUrl, 'url loaded')
Expand Down

0 comments on commit c792ce0

Please sign in to comment.