Skip Navigation
MCC: Lockout, Reactor, and Skybridge not in-game

I do not see these maps in my custom games menu in MCC Halo 3 and I did download the update for July.

0
write to variable with fetch api before rest of script executes (client side)

How does one fetch some JSON data and save it into a variable and not continue executing the rest of the script until the fetch api has fetch the JSON data?

Here is my code which will return undefined in the console.

``` var myVar;

fetch("myFile.json") .then(res => res.json()) .then(data => { myVar = data; });

console.log(myVar)

//rest of code executes... ```

>

0
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)WI
windows6 @lemm.ee
Posts 2
Comments 0