add prefix to ack

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-19 14:56:19 -03:00
parent fe4c94e895
commit 35ee716159

View file

@ -61,7 +61,7 @@
return; return;
} }
if (!parentWindow && !data.type === "init") { if (!parentWindow && !data.type === "openoutpaint/init") {
console.warn(`[webui] Communication has not been initialized`); console.warn(`[webui] Communication has not been initialized`);
} }
@ -94,7 +94,7 @@
// Send acknowledgement // Send acknowledgement
parentWindow && parentWindow &&
parentWindow.postMessage({ parentWindow.postMessage({
type: "ack", type: "openoutpaint/ack",
message: data, message: data,
}); });
} catch (e) { } catch (e) {