如何从Firebase Angular应用程序中删除警告消息
我正在使用@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":
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有点晚了,但是这是我最近必须处理的解决方案:
我检查了该元素,发现警告消息具有CSS类”。 /p>
我刚刚从CSS中定义了一种样式来隐藏警告
.firebase-emulator-warning {
显示:无;
}
然后,我认为仍然显示它是一个好主意,但使它减少了。
为此,我使用了略有不同的样式:
结果:
A bit late, but here is my solution as I had to deal with it recently:
I inspected the element and found that the warning message has css class ".firebase-emulator-warning"
From there I just defined a style in CSS to hide the warning
.firebase-emulator-warning {
display: none;
}
Then I decided it is a good idea to still show it, but make it less intrusive.
For this, I used slightly different styling:
Result: