function createBridge ({ debug } = {}) {
  if (scriptHasBridge === true) {
    console.error('Background Quasar Bridge has already been created.')
    return
  }

  scriptHasBridge = true

  return new BexBridge({
    type: 'background',
    debug
  })
}
Only run these in development mode and in a background service worker.
Currently only Chrome supports this.