Skip to content

Commit

Permalink
fix: remove screen height
Browse files Browse the repository at this point in the history
  • Loading branch information
heisenberg-2077 committed Apr 25, 2024
1 parent 8db97b4 commit 3ebabee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/background/controller/provider/rpcFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand All @@ -25,7 +24,7 @@ const lockedOrigins = new Set<string>();
const connectOrigins = new Set<string>();

const getScreenAvailHeight = async () => {
return (await browser.windows.getCurrent()).height || 1000;
return 1000;
};

const flow = new PromiseFlow<{
Expand Down

0 comments on commit 3ebabee

Please sign in to comment.