DEV: Only print console message about the Glimmer post menu once (#30255)

This commit is contained in:
Sérgio Saquetim 2024-12-12 20:40:52 -03:00 committed by GitHub
parent 96417592a3
commit c9247cde29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -554,14 +554,14 @@ createWidget("post-contents", {
!postMenuWidgetExtensionsAdded) !postMenuWidgetExtensionsAdded)
) { ) {
if (!postMenuConsoleWarningLogged) { if (!postMenuConsoleWarningLogged) {
postMenuConsoleWarningLogged = true;
if (!isTesting()) { if (!isTesting()) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log("✅ Using the new 'glimmer' post menu!"); console.log("✅ Using the new 'glimmer' post menu!");
} }
if (postMenuWidgetExtensionsAdded) { if (postMenuWidgetExtensionsAdded) {
postMenuConsoleWarningLogged = true;
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.warn( console.warn(
[ [