Skip to content

Commit 4319be1

Browse files
committed
send project description to parent
1 parent 28d3c19 commit 4319be1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/tw-project-meta-fetcher-hoc.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) {
151151

152152
if (isScratch) {
153153
window.CollaborationRoom = null;
154+
window.parent.postMessage({
155+
type: 'block-compiler-action',
156+
action: 'scratch-project-description',
157+
payload: {
158+
instructions: data.instructions || ''
159+
// description: data.description || ''
160+
}
161+
}, '*');
154162
} else {
155163
storage.setCloudOTT(data?.cloudDataOTT);
156164
storage.setCustomAchievements(data?.customAchievements);

0 commit comments

Comments
 (0)