mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
new delay function to avoid the import problem
This commit is contained in:
parent
f1bd0b1ce6
commit
ee224bf4f2
@ -4,7 +4,6 @@ import * as path from "path";
|
||||
import { base32, base64url } from "rfc4648";
|
||||
import XRegExp from "xregexp";
|
||||
import emojiRegex from "emoji-regex";
|
||||
import delay from "delay";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@ -550,7 +549,8 @@ export const changeMobileStatusBar = (
|
||||
k.className.contains("mobile-navbar") ||
|
||||
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
|
||||
.getComputedStyle(k as Element)
|
||||
.getPropertyValue("height");
|
||||
|
Loading…
Reference in New Issue
Block a user