Skip to content

Commit c3f513c

Browse files
committed
notify parent of remix action
1 parent d077155 commit c3f513c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/lib/save-project-to-server.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ export default function (projectId, vmState, params) {
6363
try {
6464
// Since we didn't set json: true, we have to parse manually
6565
body = JSON.parse(response.body);
66+
//check if creating remix
67+
if(queryParams.is_remix){
68+
window.parent.postMessage({ type: "block-compiler-action", action: "createdRemix", remixId: body["content-name"], remixTitle: body["content-title"], originalId: queryParams.original_id}, "*");
69+
}
6670
} catch (e) {
6771
return reject(e);
6872
}

0 commit comments

Comments
 (0)