mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
cleanup
This commit is contained in:
parent
18a24f614f
commit
5ab3d88393
@ -61,7 +61,6 @@ export class ExecService extends Service {
|
|||||||
if ($(parent_iframe).attr('data-appUsesSdk') !== 'true') {
|
if ($(parent_iframe).attr('data-appUsesSdk') !== 'true') {
|
||||||
send_child_launched_msg({ uses_sdk: false });
|
send_child_launched_msg({ uses_sdk: false });
|
||||||
// We also have to report an extra close event because the real one was sent already
|
// 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);
|
window.report_app_closed(child_process.uuid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -27,13 +27,10 @@ export class CallbackManager {
|
|||||||
attach_to_source (source) {
|
attach_to_source (source) {
|
||||||
source.addEventListener('message', event => {
|
source.addEventListener('message', event => {
|
||||||
const { data } = event;
|
const { data } = event;
|
||||||
debugger;
|
|
||||||
if (data && typeof data === 'object' && data.$SCOPE === $SCOPE) {
|
if (data && typeof data === 'object' && data.$SCOPE === $SCOPE) {
|
||||||
const { id, args } = data;
|
const { id, args } = data;
|
||||||
const callback = this.callbacks.get(id);
|
const callback = this.callbacks.get(id);
|
||||||
if (callback) {
|
if (callback) {
|
||||||
debugger;
|
|
||||||
console.log('callback?', callback, id, args);
|
|
||||||
callback(...args);
|
callback(...args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user