From 1f9d55829e05cfccd4d615ca0d6429d0e9ee1863 Mon Sep 17 00:00:00 2001 From: lzzfnc Date: Tue, 2 Nov 2021 02:09:41 +0100 Subject: [PATCH] promises comment --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 589658b..bd7a1c5 100644 --- a/script.js +++ b/script.js @@ -95,6 +95,7 @@ function drawLabel() { if (width > minimumSizeX && height > minimumSizeY) { new Promise(function (resolve, reject) { + // TODO: show the modal for text input then if insert and value --> resolve, if cancel --> reject insert.addEventListener("click", (e) => { if (input.value) { resolve(input.value);