Skip to content

Commit

Permalink
Fixing for firefox yet once again.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Mar 25, 2021
1 parent 916ef91 commit 154cb8d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions analysis/public/gridview.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,17 @@ for (let n = 0; n <= 0xf; n++) {

// Request the dataset.
//
const fetchPromise = fetch("/static/dataset.json");
let dataset = null;
async function getDataset() {
if (dataset) {
return dataset;
}
dataset = await (await fetch("/static/dataset.json")).json();
return dataset;
}

async function visitTable(hexBase) {
const { instructions } = await (await fetchPromise).json();
const { instructions } = await getDataset();

window.history.replaceState(null, "Haruspex - " + hexBase, "/browse/" + hexBase);

Expand Down

0 comments on commit 154cb8d

Please sign in to comment.