We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f98b87 commit 8052cbeCopy full SHA for 8052cbe
1 file changed
src/EmbedClientEx.ts
@@ -23,7 +23,11 @@
23
SOFTWARE.
24
25
*/
26
-import type { ChattyHost, ChattyHostBuilder } from '@looker/chatty'
+import type {
27
+ CallbackStore,
28
+ ChattyHost,
29
+ ChattyHostBuilder,
30
+} from '@looker/chatty'
31
import type {
32
CookielessRequestInit,
33
EnvClientDialogEvent,
@@ -236,7 +240,10 @@ export class EmbedClientEx implements IEmbedClient {
236
240
237
241
private async createIframe(url: string, waitUntilLoaded?: boolean) {
238
242
this._hostBuilder = this._sdk.chattyHostCreator(url)
239
- const handlers = { ...this._builder.handlers }
243
+ const handlers: CallbackStore = {}
244
+ for (const key in this._builder.handlers) {
245
+ handlers[key] = [...this._builder.handlers[key]]
246
+ }
247
if (!handlers['session:expired']) {
248
handlers['session:expired'] = []
249
}
0 commit comments