From 86867e153f4449167e3489323df35cf04f1fffa0 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Fri, 9 Sep 2022 23:16:02 +0300 Subject: support for prompt styles fix broken prompt matrix --- script.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'script.js') diff --git a/script.js b/script.js index ed376508..7637089e 100644 --- a/script.js +++ b/script.js @@ -194,3 +194,12 @@ window.addEventListener('paste', e => { input.dispatchEvent(new Event('change')) }); }); + +function ask_for_style_name(style_name, text){ + input = prompt('Style name:'); + if (input === null) { + return [null, null] + } + + return [input, text] +} -- cgit v1.2.3