From 1d70f249996ff1c7fbd0df9850c316c894f63d5e Mon Sep 17 00:00:00 2001 From: Jerry Aldrich Date: Fri, 11 Jun 2021 20:21:11 -0700 Subject: [PATCH] Remove js-dos progress bar --- static/js/web-dos.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/web-dos.js b/static/js/web-dos.js index 2f7d3b1..2bde382 100644 --- a/static/js/web-dos.js +++ b/static/js/web-dos.js @@ -85,6 +85,9 @@ function createGameCommand(game, canvas, termElement) { wdosboxUrl: "https://js-dos.com/6.22/current/wdosbox.js", cycles: game.cycles, autolock: true, + onprogress: (stage, total, loaded) => { + console.log(stage, loaded * 100 / total + "%"); + }, }).ready(function (fs, main) { fs.extract(game.url, "/" + game.dataFolder).then(function () { var runCommand = [];