promises comment

master
km0 3 years ago
parent e411475ab2
commit 1f9d55829e

@ -95,6 +95,7 @@ function drawLabel() {
if (width > minimumSizeX && height > minimumSizeY) { if (width > minimumSizeX && height > minimumSizeY) {
new Promise(function (resolve, reject) { 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) => { insert.addEventListener("click", (e) => {
if (input.value) { if (input.value) {
resolve(input.value); resolve(input.value);

Loading…
Cancel
Save