Skip to content
Snippets Groups Projects
Commit 24582143 authored by Arkerthan's avatar Arkerthan
Browse files

end endWeek animation in case there is an exception

parent 15352f9a
No related branches found
No related tags found
1 merge request!8584fixes
new App.DomPassage("Slave Assignments Report",
() => {
V.nextLink = "Economics"; V.nextButton = "Continue";
V.nextLink = "Economics";
V.nextButton = "Continue";
const f = document.createDocumentFragment();
App.UI.DOM.appendNewElement("h1", f, `${V.arcologies[0].name} Weekly Slave Report - Week ${V.week}`);
f.append(App.EndWeek.slaveAssignmentReport());
App.UI.EndWeekAnim.end();
try {
App.UI.DOM.appendNewElement("h1", f, `${V.arcologies[0].name} Weekly Slave Report - Week ${V.week}`);
f.append(App.EndWeek.slaveAssignmentReport());
} finally {
// whatever happens, stop the end week animation so we at least know there is an error.
App.UI.EndWeekAnim.end();
}
return f;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment