mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 11:59:51 +08:00
build(electron): use live origin http protocol instead of file:// (#8464)
fix AF-1428
This commit is contained in:
@@ -3,10 +3,7 @@ import { app, shell } from 'electron';
|
||||
app.on('web-contents-created', (_, contents) => {
|
||||
const isInternalUrl = (url: string) => {
|
||||
return (
|
||||
(process.env.DEV_SERVER_URL &&
|
||||
url.startsWith(process.env.DEV_SERVER_URL)) ||
|
||||
url.startsWith('affine://') ||
|
||||
url.startsWith('file://.')
|
||||
process.env.DEV_SERVER_URL && url.startsWith(process.env.DEV_SERVER_URL)
|
||||
);
|
||||
};
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user