在Chrome打包应用程序中禁止“无法加载资源:net :: ERR

编程入门 行业动态 更新时间:2024-10-26 21:24:32
在Chrome打包应用程序中禁止“无法加载资源:net :: ERR_FILE_NOT_FOUND”(Suppress “Failed to load resource: net::ERR_FILE_NOT_FOUND” in Chrome Packaged App)

当Chrome打包应用程序中的webview尝试加载不存在的本地文件时,我在控制台中收到消息“无法加载资源:net :: ERR_FILE_NOT_FOUND”。 这是预期的,因为该程序应该检查几个不同的位置,从本地系统开始,然后作为第二次尝试切换到远程服务器。

问题是控制台中有很多这些消息,这使得控制台很难用于其他任何事情。

有没有办法关闭此消息?

I get the message "Failed to load resource: net::ERR_FILE_NOT_FOUND" in the console when a webview in a Chrome Packaged App tries to load a non-existent local file. This is expected, because the program is supposed to check a couple of different location, starting with the local system and then switching to a remote server as a second try.

The problem is that there are a lot of these messages in the console, which makes it very difficult to use the console for anything else.

Is there a way to turn this message off?

最满意答案

是的,你可以关闭它:

单击控制台顶部的过滤器图标,然后勾选“隐藏网络消息”。

但是,您无法阻止此错误发生:它不是由JS中未捕获的异常生成的,而是从Chrome的网络堆栈报告的。

Yes, you can turn this off:

Click on the filter icon at the top of the console, and tick "Hide network messages".

You can't, however, prevent this error from happening at all: it's not generated by an uncaught exception in JS but is reported from the network stack of Chrome.

更多推荐

消息,console,local,尝试,电脑培训,计算机培训,IT培训"/> <meta name="descripti

本文发布于:2023-07-20 12:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1199627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   加载   资源   Chrome   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!