Now displays startexe program name in the H2 header.
This commit is contained in:
parent
76654b09be
commit
8cee1a5da2
@ -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
|
||||
|
15
index.js
15
index.js
@ -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`)
|
||||
})()
|
||||
|
Loading…
x
Reference in New Issue
Block a user