diff --git a/src/client/widgets/basics/button.js b/src/client/widgets/basics/button.js index 3d0f4edb..1ea3beb7 100644 --- a/src/client/widgets/basics/button.js +++ b/src/client/widgets/basics/button.js @@ -64,7 +64,7 @@ class Button extends Widget { this.pulse = null this.buttonSize = [100, 100] - this.exposeTouchCoords = this.getProp('script').includes('touchCoords') + this.exposeTouchCoords = String(this.getProp('script')).includes('touchCoords') this.parsersLocalScope.touchCoords = [0.5, 0.5] if (this.exposeTouchCoords) { this.on('resize', (e)=>{