diff --git a/EnvelopeGenerator.Web/wwwroot/js/app.js b/EnvelopeGenerator.Web/wwwroot/js/app.js index 183d7a67..55b726a0 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/app.js +++ b/EnvelopeGenerator.Web/wwwroot/js/app.js @@ -68,8 +68,8 @@ class App { this.Instance = await this.UI.loadPSPDFKit(arrayBuffer, this.container) this.UI.configurePSPDFKit(this.Instance, this.handleClick.bind(this)) - this.Instance.addEventListener('annotations.load', this.handleAnnotationsLoad) - this.Instance.addEventListener('annotations.change', this.handleAnnotationsChange) + this.Instance.addEventListener('annotations.load', this.handleAnnotationsLoad.bind(this)) + this.Instance.addEventListener('annotations.change', this.handleAnnotationsChange.bind(this)) this.Instance.addEventListener('annotations.create', this.handleAnnotationsCreate.bind(this)) // Load annotations into PSPDFKit