Skip to content

Commit 5b88f26

Browse files
committed
fix(iframe): fix the iframe too height
1 parent ba7de92 commit 5b88f26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const callIframe = async (
4949
const iframe = document.createElement('iframe')
5050
let serialNumber = ''
5151
iframe.style.width = isPhone() ? '100%' : '414px'
52-
iframe.style.height = isPhone() ? '100%' : '896px'
52+
iframe.style.height = isPhone() ? '100%' : '736px'
5353
iframe.style.position = 'fixed'
5454
iframe.style.top = '50%'
5555
iframe.style.left = '50%'
@@ -138,7 +138,7 @@ export const setCache = (data: IAuthResult, provider: Provider) => {
138138
'anyweb_info',
139139
JSON.stringify({
140140
...data,
141-
expires: 1 * 60 * 1000 + new Date().getTime(),
141+
expires: 60 * 1000 + new Date().getTime(),
142142
})
143143
)
144144
provider.address = data.address

0 commit comments

Comments
 (0)