From 6fe078bc7bdc24dbad9589b1662a2934d2b92a47 Mon Sep 17 00:00:00 2001 From: cimurah Date: Tue, 17 Oct 2023 16:30:36 -0700 Subject: [PATCH] Fix typo that loads messages when popup is requested (#182) Messages were not being loaded and rendered as expected due to a typo. Bug: T334766 --- src/Api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api.js b/src/Api.js index 9c066ad..f23fd7a 100644 --- a/src/Api.js +++ b/src/Api.js @@ -45,8 +45,8 @@ class Api { * @return {jQuery.Promise} */ fetchMessages() { - if ( !this.promiseCache.messagses ) { - this.promiseCache.messagses = this.mwApi.loadMessages( [ + if ( !this.promiseCache.messages ) { + this.promiseCache.messages = this.mwApi.loadMessages( [ 'parentheses-start', 'talkpagelinktext', 'pipe-separator',