diff options
Diffstat (limited to 'src/client/app/mobile/api/input.ts')
| -rw-r--r-- | src/client/app/mobile/api/input.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/app/mobile/api/input.ts b/src/client/app/mobile/api/input.ts new file mode 100644 index 0000000000..38d0fb61eb --- /dev/null +++ b/src/client/app/mobile/api/input.ts @@ -0,0 +1,8 @@ +export default function(opts) { + return new Promise<string>((res, rej) => { + const x = window.prompt(opts.title); + if (x) { + res(x); + } + }); +} |