Little improvements in #instance

This commit is contained in:
Bofh 2022-11-28 16:42:45 +01:00
parent 3646579d15
commit 10112d1485
1 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ window.view.instance = {
},
load_content: function(content, hashload) {
hashload = hashload === undefined ? false : hashload;
E.element('#window-instance #container').innerHTML = '';
switch (content) {
case 'home':
window.location.hash = '#home';
@ -71,7 +72,6 @@ window.view.instance = {
default:
if (hashload === true)
return set_hash_argument('content', content);
E.element('#window-instance #container').innerHTML = '';
return window.view.instance
.load[content.replaceAll('-','_')]();
}