diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-07 18:55:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-07 18:55:02 +0900 |
| commit | 7f0b9d933db747d29d033491047fca7ef0d59b97 (patch) | |
| tree | 47e6c04db5a72a12d3e87d14ffef12160a2d4a50 /src/web/app/mobile/api | |
| parent | wip (diff) | |
| download | sharkey-7f0b9d933db747d29d033491047fca7ef0d59b97.tar.gz sharkey-7f0b9d933db747d29d033491047fca7ef0d59b97.tar.bz2 sharkey-7f0b9d933db747d29d033491047fca7ef0d59b97.zip | |
wip
Diffstat (limited to 'src/web/app/mobile/api')
| -rw-r--r-- | src/web/app/mobile/api/input.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/app/mobile/api/input.ts b/src/web/app/mobile/api/input.ts index fcff68cfb6..38d0fb61eb 100644 --- a/src/web/app/mobile/api/input.ts +++ b/src/web/app/mobile/api/input.ts @@ -1,5 +1,8 @@ export default function(opts) { return new Promise<string>((res, rej) => { - alert('input not implemented yet'); + const x = window.prompt(opts.title); + if (x) { + res(x); + } }); } |