Skip to content

Commit

Permalink
Now displays startexe program name in the H2 header.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Feb 25, 2019
1 parent 76654b0 commit 8cee1a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dosee-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
})()

0 comments on commit 8cee1a5

Please sign in to comment.