Skip to content

Commit

Permalink
fix input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FineArchs authored Dec 14, 2023
1 parent 239507d commit 082cddc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/frontend/src/pages/flash/flash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,8 @@ async function run() {
return new Promise(ok => {
os.inputText({
title: q,
}).then(({ canceled, result: a }) => {
if (canceled) {
ok('');
} else {
ok(a);
}
}).then(({ result: a }) => {
ok(a ?? '');
});
});
},
Expand Down

0 comments on commit 082cddc

Please sign in to comment.