hotfix (remove setTitle call)

it needs to go somewhere but that will be figured out later
This is why we need unit tests
This commit is contained in:
hppeng 2022-05-13 23:30:13 -07:00
parent 1a9443e079
commit 057f00e478

View file

@ -5,19 +5,19 @@ const url_tag = location.hash.slice(1);
const BUILD_VERSION = "7.0.19";
function setTitle() {
let text;
if (url_base.includes("hppeng-wynn")) {
text = "WynnBuilder UNSTABLE version "+BUILD_VERSION+" (db version "+DB_VERSION+")";
}
else {
text = "WynnBuilder version "+BUILD_VERSION+" (db version "+DB_VERSION+")";
document.getElementById("header").classList.add("funnynumber");
}
document.getElementById("header").textContent = text;
}
setTitle();
// function setTitle() {
// let text;
// if (url_base.includes("hppeng-wynn")) {
// text = "WynnBuilder UNSTABLE version "+BUILD_VERSION+" (db version "+DB_VERSION+")";
// }
// else {
// text = "WynnBuilder version "+BUILD_VERSION+" (db version "+DB_VERSION+")";
// document.getElementById("header").classList.add("funnynumber");
// }
// document.getElementById("header").textContent = text;
// }
//
// setTitle();
let player_build;
@ -1026,7 +1026,6 @@ function optimizeStrDex() {
try {
calculateBuildStats();
setTitle();
if (player_build.errored)
throw new ListError(player_build.errors);
}