fix import bug

This commit is contained in:
Florian Schmid 2023-04-13 12:40:01 +02:00
parent c08a14b072
commit 82adaca14c
2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,7 @@ function updateLayout() {
document.getElementById("col2").style.backgroundColor = ""; document.getElementById("col2").style.backgroundColor = "";
} }
export function delay(time) { function delay(time) {
return new Promise(resolve => setTimeout(resolve, time)); return new Promise(resolve => setTimeout(resolve, time));
} }

4
gst.js
View File

@ -34,7 +34,9 @@ function getRandomCpu() {
} }
} }
import { delay } from "./game"; function delay(time) {
return new Promise(resolve => setTimeout(resolve, time));
}
export async function btnClick(typ) { export async function btnClick(typ) {
// 0 -> Desktop // 0 -> Desktop