Skip to content

Commit

Permalink
Studio V6 Integration: Added support for opening files (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbalint committed May 13, 2024
1 parent 3d251be commit 60c25f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ window.addEventListener(
window[rendApi.GLOBAL_SYMBOL_EXECUTE](rendApi.id.save)
}
break
case 'open-file':
observable.setObservableAttribute(rendApi.observable.reported_files, eventData)
break;
}
},
false
Expand Down
7 changes: 7 additions & 0 deletions src/api/renderer_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,11 @@ export function renderer_api_notify(key, value) {
console.log(
`${rendApi.jsonPrefix}${JSON.stringify({ key: key, value: value })}`
)
window?.parent?.postMessage(
{
eventId: key,
eventData: value,
},
'*'
)
}

0 comments on commit 60c25f9

Please sign in to comment.