iFrame.contentWindow.postMessage(JSON.stringify(data), '*');
}
-export default {show, close};
\ No newline at end of file
+async function upload(imageData, pageUploadedToId) {
+ let data = {
+ image: imageData,
+ uploaded_to: pageUploadedToId,
+ };
+ const resp = await window.$http.post(window.baseUrl(`/images/drawio`), data);
+ return resp.data;
+}
+
+export default {show, close, upload};
\ No newline at end of file