diff --git a/plugins/login-o365/LoginOAuth2.js b/plugins/login-o365/LoginOAuth2.js index 0e5a8b697..392c0e7b1 100644 --- a/plugins/login-o365/LoginOAuth2.js +++ b/plugins/login-o365/LoginOAuth2.js @@ -54,7 +54,7 @@ } // "Add account" popup (Settings → Accounts → Add account) - if ("Account" === e.detail.viewModelTemplateID) { + if ("PopupsAccount" === e.detail.viewModelTemplateID) { // Only for the "Add account" mode, not "Edit account". if (typeof e.detail.isNew === "function" && !e.detail.isNew()) { return; @@ -88,4 +88,4 @@ } }); } -})(window.rl); \ No newline at end of file +})(window.rl);