mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 21:56:38 +08:00
Update home.tsx
This commit is contained in:
parent
9e5c0bf2b4
commit
149314f0c9
@ -292,14 +292,8 @@ export function Home() {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(
|
||||
event.origin,
|
||||
!event.origin.includes("omeoffice"),
|
||||
'!event.origin.includes("omeoffice")',
|
||||
);
|
||||
|
||||
if (
|
||||
!event.origin.includes("omeoffice") ||
|
||||
!event.origin.includes("omeoffice") &&
|
||||
!event.origin.includes("localhost")
|
||||
) {
|
||||
return; // 如果不是信任的源,忽略消息
|
||||
|
Loading…
Reference in New Issue
Block a user