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 => { ;(Promise => {
"use strict" "use strict"
const doseeVersion = `1.9` const doseeVersion = `1.10`
// DOSBox requires a valid IndexedDB // DOSBox requires a valid IndexedDB
// See: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_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() monitorTabs()
resetTabs(`hardwareTab`) resetTabs(`hardwareTab`)
{
// set the <H2> element to show the filename // set the <H2> element to show the running program and archive filename
document.getElementById(`doseeH2`).innerText = `${getMetaContent( const h2 = document.getElementById(`doseeH2`)
`dosee:gamefilepath` 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`) console.log(`Loaded index.js`)
})() })()