function getCorrelations()

in correlations_page.js [32:66]


function getCorrelations() {
  if (!getOption("channel") || !getOption("signature")) {
    return;
  }

  let url = new URL(location.href);
  url.search =
    "?product=" +
    getOption("product") +
    "&channel=" +
    getOption("channel") +
    "&signature=" +
    getOption("signature");
  history.replaceState({}, document.title, url.href);

  let signature = decodeURIComponent(getOption("signature"));
  let channel = getOption("channel");
  let product = getOption("product");

  let crashStatsLink = document.getElementById("crash_stats_link");
  crashStatsLink.href =
    "https://crash-stats.mozilla.org/signature/?signature=" +
    getOption("signature") +
    "&release_channel=" +
    getOption("channel") +
    "&product=" +
    getOption("product") +
    "#correlations";

  let preElem = document.getElementById("correlations_text");
  correlations.text(preElem, signature, channel, product);

  let svgElem = document.getElementById("correlations_image");
  correlations.graph(svgElem, signature, channel, product);
}