如何从Firebase Angular应用程序中删除警告消息

发布于 2025-02-12 12:11:38 字数 659 浏览 3 评论 0原文

我正在使用@nofollow noreferrer“>@anguarlar/fire amulators 在我的firebase Angular应用中模仿身份验证过程。但是,当我运行它时,我会看到一条警告消息,上面写着“在模式模式下运行。请勿与Productions凭据一起使用”:

”输入图像描述在这里”

我在 github问题为了隐藏此消息。但是我找不到该怎么做。

你知道我要这样做吗?

I'm using @angular/fire emulators to emulate the authentication process in my firebase angular application. But when I run it, I'm seeing a warning message saying "Running in emulator mode. Do not use with productions credentials":

enter image description here

I saw in github issues that a feature was implemented in order to hide this message. But I don't find how to do it.

Do you know I to do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夕色琉璃 2025-02-19 12:11:38

有点晚了,但是这是我最近必须处理的解决方案:

  1. 我检查了该元素,发现警告消息具有CSS类”。 /p>

  2. 我刚刚从CSS中定义了一种样式来隐藏警告

    .firebase-emulator-warning {
    显示:无;
    }

  3. 然后,我认为仍然显示它是一个好主意,但使它减少了。

为此,我使用了略有不同的样式:

/* making firebase emulator warning less intrusive */
.firebase-emulator-warning {
  background-color: transparent !important;
  border: none !important;
  color: rgba(245, 66, 66, 0.3) !important;
}

结果:

”在此处输入图像描述

A bit late, but here is my solution as I had to deal with it recently:

  1. I inspected the element and found that the warning message has css class ".firebase-emulator-warning"

  2. From there I just defined a style in CSS to hide the warning

    .firebase-emulator-warning {
    display: none;
    }

  3. Then I decided it is a good idea to still show it, but make it less intrusive.

For this, I used slightly different styling:

/* making firebase emulator warning less intrusive */
.firebase-emulator-warning {
  background-color: transparent !important;
  border: none !important;
  color: rgba(245, 66, 66, 0.3) !important;
}

Result:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文