diff --git a/Logic/Actors/TitleHandler.ts b/Logic/Actors/TitleHandler.ts index c807dfca4..c9817677a 100644 --- a/Logic/Actors/TitleHandler.ts +++ b/Logic/Actors/TitleHandler.ts @@ -46,7 +46,11 @@ export default class TitleHandler { if (Utils.runningFromConsole) { return } + try{ document.title = title + }catch (e) { + console.error(e) + } }) } } diff --git a/all_themes_index.ts b/all_themes_index.ts index 25a1707bf..3e0fe301f 100644 --- a/all_themes_index.ts +++ b/all_themes_index.ts @@ -1,6 +1,6 @@ import MinimapImplementation from "./UI/Base/MinimapImplementation"; -7import { Utils } from "./Utils" +import { Utils } from "./Utils" import AllThemesGui from "./UI/AllThemesGui" import { QueryParameters } from "./Logic/Web/QueryParameters" import StatisticsGUI from "./UI/StatisticsGUI" @@ -50,7 +50,7 @@ if (mode.data === "statistics") { new FixedUiElement("").AttachTo("centermessage") const div = document.createElement("div") div.id = "extra_div_for_maps" - new PdfExportGui(div.id).SetClass("pointer-event-auto").AttachTo("topleft-tools") + new PdfExportGui(div.id).SetClass("pointer-events-auto").AttachTo("topleft-tools") document.getElementById("topleft-tools").appendChild(div) } else { new AllThemesGui().setup()