fxos-components/bridge

Allow app to pass thread 'target' directly to manager

Closed this issue · 1 comments

Sometimes an app may want to create a thread manually to take advantage of known fast-paths and then hand over that thread to a Manager.

threads.manager({
  'my-service': {
    target: document.querySelector('iframe'),
    src: 'my-service.html',
    type: 'window'
  }
});