Skip to content

Commit 34d630b

Browse files
authored
Merge pull request #217 from torusresearch/develop
Release v1.7.3
2 parents 9037226 + c792ce0 commit 34d630b

File tree

3 files changed

+46
-41
lines changed

3 files changed

+46
-41
lines changed

package-lock.json

Lines changed: 44 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@chaitanyapotti/random-id": "^1.0.3",
3131
"@toruslabs/fetch-node-details": "^2.3.0",
32-
"@toruslabs/torus.js": "^2.2.1",
32+
"@toruslabs/torus.js": "^2.2.2",
3333
"create-hash": "^1.2.0",
3434
"deepmerge": "^4.2.2",
3535
"eth-json-rpc-errors": "^2.0.2",

src/embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const iframeIntegrity = 'sha384-gN7UqXgjCMWpUYinRFvGfFCHkwD1u2ij28/B7xL9mi+QDD0B
2929
const expectedCacheControlHeader = 'max-age=3600'
3030

3131
let thirdPartyCookiesSupported = true
32+
3233
const receiveMessage = (evt) => {
3334
if (evt.data === 'torus:3PCunsupported') {
3435
log.info('unsupported 3rd party cookies')
@@ -81,7 +82,6 @@ class Torus {
8182
},
8283
whiteLabel = {},
8384
} = {}) {
84-
if (!window.isSecureContext) throw new Error('Torus can only be used in secure contexts')
8585
if (this.isInitalized) throw new Error('Already initialized')
8686
const { torusUrl, logLevel } = await getTorusUrl(buildEnv, integrity)
8787
log.info(torusUrl, 'url loaded')

0 commit comments

Comments
 (0)