mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 09:33:45 +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)
|
!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(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user