From 35ee71615946130a724a0a07a25d7fee0f5f50f9 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Mon, 19 Dec 2022 14:56:19 -0300 Subject: [PATCH] add prefix to ack Signed-off-by: Victor Seiji Hariki --- js/webui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/webui.js b/js/webui.js index c1a11ff..9151498 100644 --- a/js/webui.js +++ b/js/webui.js @@ -61,7 +61,7 @@ return; } - if (!parentWindow && !data.type === "init") { + if (!parentWindow && !data.type === "openoutpaint/init") { console.warn(`[webui] Communication has not been initialized`); } @@ -94,7 +94,7 @@ // Send acknowledgement parentWindow && parentWindow.postMessage({ - type: "ack", + type: "openoutpaint/ack", message: data, }); } catch (e) {