diff --git a/docs/CHANGES.md b/docs/CHANGES.md index 6dc055b..7c9aa3c 100644 --- a/docs/CHANGES.md +++ b/docs/CHANGES.md @@ -7,6 +7,7 @@ - New meta initialisation options, `dosee:speed`, `dosee:graphic` and `dosee:audio`. - Renamed Hardware tab headers to improve their clarity. - Replaced two of the sample demos to better show off the variety of emulated hardware. +- Fixed broken SVGA Graphic option, `dosmachine=svga`. ### v1.60 diff --git a/src/js/dosee-loader.js b/src/js/dosee-loader.js index 5cd8475..8371c8e 100644 --- a/src/js/dosee-loader.js +++ b/src/js/dosee-loader.js @@ -271,8 +271,10 @@ window.Module = null; if (loadConfig === ``) throw Error(`graphicMode loadConfig argument cannot be empty`); const alerts = () => { - document.getElementById(`svgaEffectsMsg`).classList.add(`hidden`); - document.getElementById(`highResRequired`).classList.remove(`hidden`); + const s = document.getElementById(`svgaEffectsMsg`); + if (s !== null) s.classList.add(`hidden`); + const h = document.getElementById(`highResRequired`); + if (h !== null) h.classList.remove(`hidden`); }; // emulation graphics or machine type const machine =