INNER CODE UNIT · JavaScript

loadScenes

electronicarts/pbmpm · src/main.js:531

async function loadScenes()
{
    g_manifest = await (await fetch('./scenes/manifest.json')).json();

    let sceneIndex = 0;
    const cookieValue = document.cookie
        .split("; ")
        .find((row) => row.startsWith("pbmpm-scene="))
        ?.split("=")[1];

    if(cookieValue)
    {
        sceneIndex = Math.min(Number(cookieValue), g_manifest.length);
    }

    console.log(sceneIndex);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…