Verified Commit d17f8582 authored by Camil Staps's avatar Camil Staps 🚀

Add onclose to ABC component

parent c8098b5b
......@@ -54,6 +54,7 @@ class Component {
this.closing=false;
this.closeWindowOnClose=true;
this.onclose=() => {};
this.response_handlers=new Map();
this.request_id=0;
......@@ -110,6 +111,7 @@ class Component {
break;
case 'close':
this.closing=true;
this.onclose();
if (typeof window!='undefined')
window.close();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment