From ec5e76cbf902df3b2a6b68e892ba0935f1887042 Mon Sep 17 00:00:00 2001 From: Michael Wallace Date: Fri, 18 Oct 2024 17:33:22 +1100 Subject: [PATCH] fix: Ensure TX event listener is registered when using ViewBinding.setTokenScript() --- .../tokenscript-viewer/src/integration/abstractViewBinding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tokenscript-viewer/src/integration/abstractViewBinding.ts b/javascript/tokenscript-viewer/src/integration/abstractViewBinding.ts index 4597788..cd87517 100644 --- a/javascript/tokenscript-viewer/src/integration/abstractViewBinding.ts +++ b/javascript/tokenscript-viewer/src/integration/abstractViewBinding.ts @@ -35,7 +35,7 @@ export abstract class AbstractViewBinding implements IViewBinding { setViewController(viewController: ViewController){ this._viewController = viewController; - this.tokenScript = viewController.tokenScript; + this.setTokenScript(viewController.tokenScript); } get viewController() {