问题描述
我的电子应用程序随机重定向到 chrome-error://chromewebdata,我不知道为什么.控制台等没有错误.
My electron app is randomly redirecting to chrome-error://chromewebdata, and I've no idea why. There's no 免费vpn errors in the console, etc.
当 Electron 免费vpn 应用程序第一次启动时,窗口打开,它从我的应用程序重定向到该 URL,我看到一个空白的空白屏幕.无需用户交互,只需在应用启动时进行.
When the Electron app vpn下载 first starts, the window opens, and vpn free it redirects away from my 免费vpn application to that URL and I see an empty blank white screen. No user interaction is necessary, it just happens when the app free vpn starts.
如果我打开 devtools,我可以看到 window.location.href 包含 chrome-error://chromewebdata 而不是 http://localhost:9080(Electron 应用程序使用 localhost URL 运行).
If I open devtools, I can see that window.location.href contains chrome-error://chromewebdata instead of http://localhost:9080 (the Electron app runs using a localhost URL).
我尝试删除 ~/Library/Application Support/my-app-name 的本地 Electron/Chrome 数据文件夹并重新开始,但没有成功.
I tried deleting the local Electron/Chrome data folder at ~/Library/Application Support/my-app-name and starting over, but no luck.
Chrome(在 Electron 中?)可以决定重定向到 chrome-error://chromewebdata 的原因是什么?
What are 免费vpn下载 reasons that Chrome (in Electron?) can decide to redirect to 免费vpn下载 chrome-error://chromewebdata?
推荐答案
由于某种原因,您的代码试图导航到无效(不存在)的 URL,然后导致 window.location.href 是 chrome-error://chromewebdata.
For some reason, your vpn下载 code is trying to navigate to an invalid (non-existing) URL, which 免费vpn then results in window.location.href 免费vpn being chrome-error://chromewebdata.
重申一下:没有直接重定向到 chrome-error://chromewebdata,而是重定向到不存在或无法访问的 URL.
To reiterate: there is no direct redirection to chrome-error://chromewebdata, but instead vpn下载 to a URL that doesn't exist or is not reachable.
检查您的代码是否会导致此导航(可能是重定向).检查 DevTools 中的 Network 选项卡非常有用,确保选中Preserve log".这应该可以说明到底发生了什么.
Check if your code causes this navigation (possibly 免费vpn a redirect). It is very useful to 免费vpn下载 inspect the Network tab in DevTools, making sure that "Preserve log" vpn下载 is checked. free vpn This should give some indication about what exactly is free vpn happening.
这篇关于为什么 Chrome(在 Electron 内部)会突然重定向到 vpn free chrome-error://chromewebdata?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构免费vpn源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)