aboutsummaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-11 23:25:35 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-11 23:25:35 +0300
commit81d91cea29b8246ad0151fa89e37d6ef719b8b51 (patch)
tree58a1e16c73bc68245f895fbe42eb10cfb5c0cda1 /script.js
parent8fb9c57ed62dcef721d50c1eeb9c20f65c509215 (diff)
parent4535239d8a2541171efe0af4bc55476e119f205e (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'script.js')
-rw-r--r--script.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/script.js b/script.js
index f41cf90c..ba2fa8a7 100644
--- a/script.js
+++ b/script.js
@@ -186,11 +186,7 @@ window.addEventListener('paste', e => {
});
});
-function ask_for_style_name(style_name, text){
- input = prompt('Style name:');
- if (input === null) {
- return [null, null]
- }
-
- return [input, text]
+function ask_for_style_name(_, prompt_text, negative_prompt_text) {
+ name_ = prompt('Style name:')
+ return name_ === null ? [null, null, null]: [name_, prompt_text, negative_prompt_text]
}