use top
to adress aardvark/electron objects, e.g. top.aardvark.dialog.openFileDialog...
more info can be found here: https://stackoverflow.com/questions/8066547/getting-parents-document-from-iframe
When using iframes and/or multiple windows, your parent is referenced in the field window.opener
. I.e. to find the topmost window (containing top.aardvark
):
function win() { var w = window; while(w.opener) w = w.opener; return w; }