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 => {
|
;(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
|
||||||
|
15
index.js
15
index.js
@ -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`)
|
||||||
})()
|
})()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user