diff --git a/app/assets/javascripts/discourse/widgets/widget.js.es6 b/app/assets/javascripts/discourse/widgets/widget.js.es6 index b131f2a4e28..159727522b1 100644 --- a/app/assets/javascripts/discourse/widgets/widget.js.es6 +++ b/app/assets/javascripts/discourse/widgets/widget.js.es6 @@ -118,6 +118,8 @@ export default class Widget { this.appEvents = register.lookup("service:app-events"); this.keyValueStore = register.lookup("key-value-store:main"); + this.init(); + // Helps debug widgets if (Discourse.Environment === "development" || ENV.environment === "test") { const ds = this.defaultState(attrs); @@ -144,6 +146,8 @@ export default class Widget { return {}; } + init() {} + destroy() {} render(prev) {