Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
HeHang0 committed Nov 10, 2023
1 parent ce6d490 commit 79dfe30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ export function getRandomInt(min: number, max: number, ignore?: number) {
}

export function fixNotchIPhoneHeight() {
if (!('standalone' in window.navigator && window.navigator.standalone))
return;
const computeStyle = getComputedStyle(document.documentElement);
const sat = computeStyle.getPropertyValue('--sat') || '0';
const sal = computeStyle.getPropertyValue('--sal') || '0';
const sar = computeStyle.getPropertyValue('--sar') || '0';
const sab = computeStyle.getPropertyValue('--sab') || '0';
alert(`哈哈哈哈 ${sat}-${sal}-${sar}-${sab}`);
if (!isInStandaloneMode || !isIOS) return;
alert(`哈哈哈哈 1`);
console.log('computeStyle --sat', sat);
console.log('computeStyle --sal', sal);
console.log('computeStyle --sar', sar);
Expand Down

0 comments on commit 79dfe30

Please sign in to comment.