mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 08:03:48 +08:00
DEV: Only print console message about the Glimmer post menu once (#30255)
This commit is contained in:
parent
96417592a3
commit
c9247cde29
|
@ -554,14 +554,14 @@ createWidget("post-contents", {
|
|||
!postMenuWidgetExtensionsAdded)
|
||||
) {
|
||||
if (!postMenuConsoleWarningLogged) {
|
||||
postMenuConsoleWarningLogged = true;
|
||||
|
||||
if (!isTesting()) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log("✅ Using the new 'glimmer' post menu!");
|
||||
}
|
||||
|
||||
if (postMenuWidgetExtensionsAdded) {
|
||||
postMenuConsoleWarningLogged = true;
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue
Block a user