_onPaste(e) {
    if (!e.clipboardData) return;
    e.preventDefault();

    // Try paste as gist URL.
    try {
      const url = new URL(e.clipboardData.getData('text'));
      this._loadFromGistURL(url.href);

      if (window.gtag) {
        window.gtag('event', 'report', {type: 'paste-link'});
      }
    } catch (err) {
      // noop
    }

    // Try paste as json content.
    try {
      const json = JSON.parse(e.clipboardData.getData('text'));
      this._replaceReportHtml(json);

      if (window.gtag) {
        window.gtag('event', 'report', {type: 'paste'});
      }
    } catch (err) {
    }
  }
Enables pasting a JSON report or gist URL on the page.
@param {ClipboardEvent} e
@private