DEV: Correct method name in theme-errors-handler pre-initializer (#15501)

This commit is contained in:
David Taylor
2022-01-10 10:51:40 +00:00
committed by GitHub
parent df7cda40b7
commit b3aeedd653

View File

@@ -25,8 +25,8 @@ export default {
document.addEventListener("discourse-error", this.handleDiscourseError);
},
cleanup() {
document.removeEventListener(this.handleDiscourseError);
teardown() {
document.removeEventListener("discourse-error", this.handleDiscourseError);
delete this.currentUser;
},