Now displays startexe program name in the H2 header.

This commit is contained in:
bengarrett 2019-02-25 12:39:59 +11:00
parent 76654b09be
commit 8cee1a5da2
2 changed files with 10 additions and 7 deletions

View File

@ -19,7 +19,7 @@ Module = null
;(Promise => {
"use strict"
const doseeVersion = `1.9`
const doseeVersion = `1.10`
// DOSBox requires a valid IndexedDB
// See: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB

View File

@ -40,11 +40,14 @@ function resetTabs(defaultTab) {
(() => {
monitorTabs()
resetTabs(`hardwareTab`)
// set the <H2> element to show the filename
document.getElementById(`doseeH2`).innerText = `${getMetaContent(
`dosee:gamefilepath`
)}`
{
// set the <H2> element to show the running program and archive filename
const h2 = document.getElementById(`doseeH2`)
const archive = `${getMetaContent(`dosee:gamefilepath`)}`
const exe = `${getMetaContent(`dosee:startexe`)}`
if (exe.length > 0) {
h2.innerText = `${exe}${archive}`
} else h2.innerText = `${archive}`
}
console.log(`Loaded index.js`)
})()