From 8cee1a5da2119ad6d0622ff0ffc4bbcd013abab8 Mon Sep 17 00:00:00 2001 From: bengarrett Date: Mon, 25 Feb 2019 12:39:59 +1100 Subject: [PATCH] Now displays startexe program name in the H2 header. --- dosee-loader.js | 2 +- index.js | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dosee-loader.js b/dosee-loader.js index f091475..6475a03 100644 --- a/dosee-loader.js +++ b/dosee-loader.js @@ -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 diff --git a/index.js b/index.js index f591046..a403a32 100644 --- a/index.js +++ b/index.js @@ -40,11 +40,14 @@ function resetTabs(defaultTab) { (() => { monitorTabs() resetTabs(`hardwareTab`) - - // set the

element to show the filename - document.getElementById(`doseeH2`).innerText = `${getMetaContent( - `dosee:gamefilepath` - )}` - + { + // set the

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`) })()