Remove reference to electron-index

This file no longer exists
上级 aa02ffeb
...@@ -367,7 +367,7 @@ async function getOuterIframeClient(webviewId) { ...@@ -367,7 +367,7 @@ async function getOuterIframeClient(webviewId) {
const allClients = await sw.clients.matchAll({ includeUncontrolled: true }); const allClients = await sw.clients.matchAll({ includeUncontrolled: true });
return allClients.filter(client => { return allClients.filter(client => {
const clientUrl = new URL(client.url); const clientUrl = new URL(client.url);
const hasExpectedPathName = (clientUrl.pathname === `${rootPath}/` || clientUrl.pathname === `${rootPath}/index.html` || clientUrl.pathname === `${rootPath}/electron-browser-index.html`); const hasExpectedPathName = (clientUrl.pathname === `${rootPath}/` || clientUrl.pathname === `${rootPath}/index.html`);
return hasExpectedPathName && clientUrl.searchParams.get('id') === webviewId; return hasExpectedPathName && clientUrl.searchParams.get('id') === webviewId;
}); });
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册