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); });