unhandledrejection', value: event.reason },
              '*'
            )
          } catch (e) {
            parent.postMessage(
              { action: 'unhandledrejection', value: event.reason.message },
              '*'
            )
          }
        })

        let previous = { level: null, args: null }

        ;['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach(
          (level) => {
            const original = console[level]
            console[level] = (...args) => {
        