久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

為什么 Chrome(在 Electron 內(nèi)部)會(huì)突然重定向到 ch

Why might Chrome (inside Electron) suddenly redirect to chrome-error://chromewebdata?(為什么 Chrome(在 Electron 內(nèi)部)會(huì)突然重定向到 chrome-error://chromewebdata?)
本文介紹了為什么 Chrome(在 Electron 內(nèi)部)會(huì)突然重定向到 chrome-error://chromewebdata?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我的電子應(yīng)用程序隨機(jī)重定向到 chrome-error://chromewebdata,我不知道為什么.控制臺(tái)等沒(méi)有錯(cuò)誤.

My electron app is randomly redirecting to chrome-error://chromewebdata, and I've no idea why. There's no errors in the console, etc.

當(dāng) Electron 應(yīng)用程序第一次啟動(dòng)時(shí),窗口打開(kāi),它從我的應(yīng)用程序重定向到該 URL,我看到一個(gè)空白的空白屏幕.無(wú)需用戶(hù)交互,只需在應(yīng)用啟動(dòng)時(shí)進(jìn)行.

When the Electron app first starts, the window opens, and it redirects away from my application to that URL and I see an empty blank white screen. No user interaction is necessary, it just happens when the app starts.

如果我打開(kāi) devtools,我可以看到 window.location.href 包含 chrome-error://chromewebdata 而不是 http://localhost:9080(Electron 應(yīng)用程序使用 localhost URL 運(yùn)行).

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 數(shù)據(jù)文件夾并重新開(kāi)始,但沒(méi)有成功.

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 reasons that Chrome (in Electron?) can decide to redirect to chrome-error://chromewebdata?

推薦答案

由于某種原因,您的代碼試圖導(dǎo)航到無(wú)效(不存在)的 URL,然后導(dǎo)致 window.location.hrefchrome-error://chromewebdata.

For some reason, your code is trying to navigate to an invalid (non-existing) URL, which then results in window.location.href being chrome-error://chromewebdata.

重申一下:沒(méi)有直接重定向到 chrome-error://chromewebdata,而是重定向到不存在或無(wú)法訪問(wèn)的 URL.

To reiterate: there is no direct redirection to chrome-error://chromewebdata, but instead to a URL that doesn't exist or is not reachable.

檢查您的代碼是否會(huì)導(dǎo)致此導(dǎo)航(可能是重定向).檢查 DevTools 中的 Network 選項(xiàng)卡非常有用,確保選中Preserve log".這應(yīng)該可以說(shuō)明到底發(fā)生了什么.

Check if your code causes this navigation (possibly a redirect). It is very useful to inspect the Network tab in DevTools, making sure that "Preserve log" is checked. This should give some indication about what exactly is happening.

這篇關(guān)于為什么 Chrome(在 Electron 內(nèi)部)會(huì)突然重定向到 chrome-error://chromewebdata?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進(jìn)程中創(chuàng)建子窗口時(shí)如何修復(fù) BrowserWindow 不是構(gòu)造函數(shù)錯(cuò)誤) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應(yīng)用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無(wú)法在第二個(gè) loadURL 上執(zhí)行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內(nèi)使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲(chǔ)?)
How to access camera/webcamera inside electron app?(如何在電子應(yīng)用程序中訪問(wèn)相機(jī)/網(wǎng)絡(luò)攝像頭?)
主站蜘蛛池模板: 日操操夜操操 | 伊色综合久久之综合久久 | 在线免费国产视频 | 影音先锋中文字幕在线观看 | 91国内精品 | 日本一区二区不卡 | 亚洲二区在线 | 欧美日韩一本 | 欧美黄在线观看 | 国产在线一区二区 | 亚洲毛片在线观看 | 91丨九色丨国产在线 | 日韩欧美国产综合 | 日韩欧美久久精品 | 欧美激情在线播放 | 国产熟熟 | 一二三四在线视频观看社区 | 日本不卡免费新一二三区 | 日本一区二区不卡视频 | 国产欧美日韩二区 | 久久久国产亚洲精品 | 天天干天天操天天射 | 成人午夜在线观看 | 99久久精品国产一区二区三区 | 在线观看成人小视频 | 亚洲一区免费视频 | www四虎com| 亚洲天堂av在线 | 一区二区高清 | 久久国产精品一区二区三区 | 亚洲一视频 | 一区二区在线免费观看 | 国产精品免费高清 | 久久国产日本 | 国产精品久久久久久久久久久免费看 | 综合婷婷 | 欧美精品在线免费观看 | 99在线精品视频 | 色综合久久久久 | 四季久久免费一区二区三区四区 | 免费一区二区三区在线视频 |