From 4cdda92130c5d38b62f613a06583532614d27c67 Mon Sep 17 00:00:00 2001 From: huhuanming Date: Thu, 19 Dec 2024 19:30:43 +0800 Subject: [PATCH] Update index.tsx --- .../inpage-providers-hub/src/floatingButton/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/providers/inpage-providers-hub/src/floatingButton/index.tsx b/packages/providers/inpage-providers-hub/src/floatingButton/index.tsx index 218be06f..50de063f 100644 --- a/packages/providers/inpage-providers-hub/src/floatingButton/index.tsx +++ b/packages/providers/inpage-providers-hub/src/floatingButton/index.tsx @@ -739,6 +739,10 @@ async function injectIcon() { } export function injectFloatingButton() { + // Check if the current window is an iframe + if (window.top !== window.self) { + return + } (globalThis as unknown as { $onekey: { $private: {