From 7f0b9d933db747d29d033491047fca7ef0d59b97 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Mar 2018 18:55:02 +0900 Subject: wip --- src/web/app/mobile/api/input.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/web/app/mobile/api/input.ts') 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((res, rej) => { - alert('input not implemented yet'); + const x = window.prompt(opts.title); + if (x) { + res(x); + } }); } -- cgit v1.2.3-freya