@toruslabs/base-controllers
Advanced tools
Comparing version 5.2.3 to 5.2.4
@@ -23,3 +23,5 @@ import { JRPCEngine, SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; | ||
*/ | ||
handleWindowBlockAlert(): Promise<null>; | ||
handleWindowBlockAlert(params: { | ||
windowId: string; | ||
}): Promise<null>; | ||
} | ||
@@ -26,0 +28,0 @@ export interface StreamWindowState extends BaseState { |
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "5.2.3", | ||
"version": "5.2.4", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -66,3 +66,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "058a00410c045268e91be28493dcaf70f30e5acf" | ||
"gitHead": "ba1822a15bde6956656816382b23866ef6f0b66e" | ||
} |
@@ -27,3 +27,3 @@ import { JRPCEngine, SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; | ||
*/ | ||
handleWindowBlockAlert(): Promise<null>; | ||
handleWindowBlockAlert(params: { windowId: string }): Promise<null>; | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -39,6 +39,8 @@ import { BroadcastChannel } from "@toruslabs/broadcast-channel"; | ||
if (typeof this.config.handleWindowBlockAlert !== "function") reject(new Error("handleWindowBlockAlert is not a function")); | ||
communicationWindowManager.once(`${this.state.windowId}:iframe-opened`, () => { | ||
// this means iframe is full screen now | ||
// there might be multiple block alerts at a time. so, we don't set iframe to close after handling this here | ||
this.config.handleWindowBlockAlert().then(resolve).catch(reject); | ||
this.config.handleWindowBlockAlert({ windowId: this.state.windowId }).then(resolve).catch(reject); | ||
}); | ||
@@ -45,0 +47,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4011269
12144