Fix tab title

This commit is contained in:
Varun Patil 2020-05-08 13:43:31 +05:30
parent dfc9771036
commit 3945fba7d6
2 changed files with 7 additions and 1 deletions

View File

@ -115,6 +115,8 @@
<script type='text/javascript'>
var namespace = 'kne';
var wTitle = 'KN_E'
window.saveFile = function(filename) {
const buf = FS.readFile('/game/' + filename);
const b64 = btoa(String.fromCharCode.apply(null, buf));
@ -206,6 +208,8 @@
};
window.fileLoadedAsync = function(file) {
document.title = wTitle;
if (!(/.*Map.*rxdata/i.test(file))) return;
fetch('preload/' + file + '.json')
@ -274,6 +278,8 @@
hideTimer = 0;
}
}
document.title = wTitle;
</script>
<script>

View File

@ -198,7 +198,7 @@ void Config::read(int argc, char *argv[])
defScreenH = 480;
enableBlitting = false;
winResizable = false;
windowTitle = "KN_E";
windowTitle = "MKXP";
frameSkip = false;
#undef PO_DESC