@toruslabs/base-controllers
Advanced tools
Comparing version 5.2.6 to 5.2.9
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "5.2.6", | ||
"version": "5.2.9", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -66,3 +66,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "4063508c644e18b27f3850b195ca521480fbde35" | ||
"gitHead": "771764a2627408f6943d11baa2f5424847fcc747" | ||
} |
@@ -63,3 +63,11 @@ import BaseController from "../BaseController"; | ||
// if it's blocked, open StreamWindow | ||
const streamWindow = new StreamWindow({ config: { communicationEngine, communicationWindowManager }, state: { url } }); | ||
const streamWindow = new StreamWindow({ | ||
config: { | ||
communicationEngine, | ||
communicationWindowManager, | ||
instanceId: this.config.instanceId, | ||
handleWindowBlockAlert: this.config.handleWindowBlockAlert, | ||
}, | ||
state: { url }, | ||
}); | ||
streamWindow.open(); | ||
@@ -73,3 +81,11 @@ finalWindowId = streamWindow.state.windowId; | ||
// A window has been pre-opened with a query parameter `windowId` | ||
const localWindow = new StreamWindow({ config: { communicationEngine, communicationWindowManager }, state: { url, windowId } }); | ||
const localWindow = new StreamWindow({ | ||
config: { | ||
communicationEngine, | ||
communicationWindowManager, | ||
instanceId: this.config.instanceId, | ||
handleWindowBlockAlert: this.config.handleWindowBlockAlert, | ||
}, | ||
state: { url, windowId }, | ||
}); | ||
this.update({ window: localWindow, windowId: localWindow.state.windowId }); | ||
@@ -76,0 +92,0 @@ await localWindow.open(); |
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
4018091
12189