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

View File

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