rnion);
    object.pushUpdate();
    _bindObject(object);
  }

  return tab;
};
const _closeTab = tab => {
  const {id, iframe} = tab;
  if (iframe.destroy) {
    iframe.destroy();
  }
  document.body.removeChild(iframe);

  tabs.splice(tabs.indexOf(tab), 1);
  layers.splice(layers.indexOf(iframe), 1);

  if (serverConnectedUrl) {
    const objectMesh = xrmp.getObjectMeshes().find(objectMesh => objectMesh.object.id === id);
    xrmp.removeObjectMesh(objectMesh);
  }
};
const _closeAllTabs = () => { // XXX t