This commit is contained in:
Aiden 2024-10-10 11:17:35 +08:00
parent b4336ad8c2
commit 59e59bd37e

View File

@ -40,7 +40,9 @@ const root = document.documentElement;
root.style.setProperty( root.style.setProperty(
"--statusBarHeight", "--statusBarHeight",
`${ `${
currentWebView.RunTime === "app" ? plus.navigator.getStatusbarHeight() : 0 currentWebView.RunTime === "app"
? plus.navigator.getStatusbarHeight()
: 0 ?? 0
}px` }px`
); );
</script> </script>