From bf807e56f537fa4fd307bb2ac3805747805d9da6 Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Mon, 5 Apr 2021 03:30:17 +0200 Subject: [PATCH] try fix --- ReallifeGamemode.Client/assets/js/inputhelper/application.js | 4 ++-- ReallifeGamemode.Client/inputhelper/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Client/assets/js/inputhelper/application.js b/ReallifeGamemode.Client/assets/js/inputhelper/application.js index bfaa2314..8513019d 100644 --- a/ReallifeGamemode.Client/assets/js/inputhelper/application.js +++ b/ReallifeGamemode.Client/assets/js/inputhelper/application.js @@ -3,10 +3,10 @@ let heading = document.getElementById('heading'); let description = document.getElementById('description'); -let input = document.getElementById('input-value'); +let input = document.getElementById('input'); let close = document.getElementById('close'); - function setInputFieldType(value) { +fzunction setInputFieldType(value) { if (input.type == value) return; var field = document.createElement('input'); diff --git a/ReallifeGamemode.Client/inputhelper/index.ts b/ReallifeGamemode.Client/inputhelper/index.ts index 3d0d4278..62e509ae 100644 --- a/ReallifeGamemode.Client/inputhelper/index.ts +++ b/ReallifeGamemode.Client/inputhelper/index.ts @@ -64,7 +64,7 @@ export default class InputHelper { private valueGetter(): Promise { return new Promise(resolve => { while (this.value === undefined) { - mp.game.waitAsync(1); + mp.game.wait(1); } resolve(this.value); });