Set document title slightly sooner

This commit is contained in:
thepaperpilot 2022-03-03 21:41:26 -06:00
parent 49474b1518
commit 46fc9ea1ba

View file

@ -8,6 +8,7 @@ import { Transient } from "./game/state";
import Decimal, { DecimalSource } from "./lib/break_eternity"; import Decimal, { DecimalSource } from "./lib/break_eternity";
import { load } from "./util/save"; import { load } from "./util/save";
document.title = projInfo.title;
if (projInfo.id === "") { if (projInfo.id === "") {
throw "Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json"; throw "Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json";
} }
@ -51,7 +52,6 @@ requestAnimationFrame(async () => {
})); }));
globalBus.emit("setupVue", vue); globalBus.emit("setupVue", vue);
vue.mount("#app"); vue.mount("#app");
document.title = projInfo.title;
startGameLoop(); startGameLoop();
}); });