new delay function to avoid the import problem
Some checks failed
Release A New Version / build (16.x) (push) Failing after 36s
Some checks failed
Release A New Version / build (16.x) (push) Failing after 36s
This commit is contained in:
parent
f1bd0b1ce6
commit
ee224bf4f2
@ -4,7 +4,6 @@ import * as path from "path";
|
|||||||
import { base32, base64url } from "rfc4648";
|
import { base32, base64url } from "rfc4648";
|
||||||
import XRegExp from "xregexp";
|
import XRegExp from "xregexp";
|
||||||
import emojiRegex from "emoji-regex";
|
import emojiRegex from "emoji-regex";
|
||||||
import delay from "delay";
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
@ -550,7 +549,8 @@ export const changeMobileStatusBar = (
|
|||||||
k.className.contains("mobile-navbar") ||
|
k.className.contains("mobile-navbar") ||
|
||||||
k.className.contains("mobile-toolbar")
|
k.className.contains("mobile-toolbar")
|
||||||
) {
|
) {
|
||||||
await delay(300); // have to wait, otherwise the height is not correct??
|
// have to wait, otherwise the height is not correct??
|
||||||
|
await new Promise((resolve) => setTimeout(resolve, 300));
|
||||||
const height = window
|
const height = window
|
||||||
.getComputedStyle(k as Element)
|
.getComputedStyle(k as Element)
|
||||||
.getPropertyValue("height");
|
.getPropertyValue("height");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user