We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b93d8 commit a2ec36fCopy full SHA for a2ec36f
packages/userscript/source/ui/components/UiComponent.ts
@@ -63,7 +63,7 @@ export abstract class UiComponent extends EventTarget {
63
64
static promptLimit(text: string, defaultValue: string): number | null {
65
const value = window.prompt(text, defaultValue);
66
- if (value === null) {
+ if (value === null || value === "") {
67
return null;
68
}
69
0 commit comments