This commit is contained in:
KernelDeimos 2024-09-02 17:36:46 -04:00 committed by Eric Dubé
parent 18a24f614f
commit 5ab3d88393
2 changed files with 0 additions and 4 deletions

View File

@ -61,7 +61,6 @@ export class ExecService extends Service {
if ($(parent_iframe).attr('data-appUsesSdk') !== 'true') {
send_child_launched_msg({ uses_sdk: false });
// We also have to report an extra close event because the real one was sent already
console.log('reporting app closed');
window.report_app_closed(child_process.uuid);
}
});

View File

@ -27,13 +27,10 @@ export class CallbackManager {
attach_to_source (source) {
source.addEventListener('message', event => {
const { data } = event;
debugger;
if (data && typeof data === 'object' && data.$SCOPE === $SCOPE) {
const { id, args } = data;
const callback = this.callbacks.get(id);
if (callback) {
debugger;
console.log('callback?', callback, id, args);
callback(...args);
}
}