From 3ebabee950b4c41311051fd14e36331b87cd0c0f Mon Sep 17 00:00:00 2001 From: heisenberg Date: Thu, 25 Apr 2024 11:05:19 +0800 Subject: [PATCH] fix: remove screen height --- src/background/controller/provider/rpcFlow.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/background/controller/provider/rpcFlow.ts b/src/background/controller/provider/rpcFlow.ts index 41cdacf0808..916567096c8 100644 --- a/src/background/controller/provider/rpcFlow.ts +++ b/src/background/controller/provider/rpcFlow.ts @@ -14,7 +14,6 @@ import * as Sentry from '@sentry/browser'; import stats from '@/stats'; import { addHexPrefix, stripHexPrefix } from 'ethereumjs-util'; import { findChain } from '@/utils/chain'; -import browser from 'webextension-polyfill'; const isSignApproval = (type: string) => { const SIGN_APPROVALS = ['SignText', 'SignTypedData', 'SignTx']; @@ -25,7 +24,7 @@ const lockedOrigins = new Set(); const connectOrigins = new Set(); const getScreenAvailHeight = async () => { - return (await browser.windows.getCurrent()).height || 1000; + return 1000; }; const flow = new PromiseFlow<{