summaryrefslogtreecommitdiff
path: root/src/web/app/mobile/api/input.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/mobile/api/input.ts')
-rw-r--r--src/web/app/mobile/api/input.ts5
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);
+ }
});
}