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() {