From 353577b1d71e6bd76af8d32bd3607452f0ff91c8 Mon Sep 17 00:00:00 2001 From: Benedicte Quimbert Date: Fri, 29 Oct 2021 19:27:14 +0200 Subject: [PATCH] Fixes deleting SharedVariablesManager's close() function --- front/src/Phaser/Game/SharedVariablesManager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/src/Phaser/Game/SharedVariablesManager.ts b/front/src/Phaser/Game/SharedVariablesManager.ts index 8e4f3918..8e7f3119 100644 --- a/front/src/Phaser/Game/SharedVariablesManager.ts +++ b/front/src/Phaser/Game/SharedVariablesManager.ts @@ -165,6 +165,10 @@ export class SharedVariablesManager { return variable; } + public close(): void { + iframeListener.unregisterAnswerer("setVariable"); + } + get variables(): Map { return this._variables; }