From bc1de3fb675c8ea2f6b2038bbce4a8caf08903ad Mon Sep 17 00:00:00 2001 From: shvl Date: Fri, 5 Apr 2024 20:39:09 +0200 Subject: [PATCH] fixed lost context issue --- hugo/src/js/controllers/comments_embed_controller.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/hugo/src/js/controllers/comments_embed_controller.jsx b/hugo/src/js/controllers/comments_embed_controller.jsx index 9ea0c64e..1edc6190 100644 --- a/hugo/src/js/controllers/comments_embed_controller.jsx +++ b/hugo/src/js/controllers/comments_embed_controller.jsx @@ -12,6 +12,7 @@ export default class extends Controller { window.REMARK42.destroy(); window.REMARK42.createInstance(window.remark_config); } + this.changeTheme = this.changeTheme.bind(this); } connect() {