From ed5c53512577055c601614354f8d7b643e6a119b Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Fri, 21 Jul 2023 10:14:04 -0500 Subject: [PATCH] Bump version --- data/emulator.js | 9 +++++---- data/minify/index.js | 9 +-------- data/version.json | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/data/emulator.js b/data/emulator.js index 08c1d48..51799b3 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -169,11 +169,12 @@ class EmulatorJS { }) } constructor(element, config) { - this.ejs_version = "4.0.3"; - this.ejs_num_version = 40.3; + this.ejs_version = "4.0.4"; + this.ejs_num_version = 40.4; this.debug = (window.EJS_DEBUG_XX === true); if (this.debug || (window.location && ['localhost', '127.0.0.1'].includes(location.hostname))) this.checkForUpdates(); - this.netplay = false; //DO NOT ENABLE UNLESS YOU KNOW WHAT YOU'RE DOING + this.netplayEnabled = false; //DO NOT ENABLE UNLESS YOU KNOW WHAT YOU'RE DOING + if (!this.debug) this.netplayEnabled = false; this.config = config; this.currentPopup = null; this.touch = false; @@ -986,7 +987,7 @@ class EmulatorJS { this.elements.contextMenu.save.style.display = "none"; this.elements.contextMenu.load.style.display = "none"; } - if (typeof this.config.gameId !== "number" || !this.config.netplayUrl || this.netplay === false) { + if (typeof this.config.gameId !== "number" || !this.config.netplayUrl || this.netplayEnabled === false) { this.elements.bottomBar.netplay[0].style.display = "none"; } } diff --git a/data/minify/index.js b/data/minify/index.js index 9654a8a..db75d52 100644 --- a/data/minify/index.js +++ b/data/minify/index.js @@ -2,11 +2,6 @@ const UglifyJS = require("uglify-js"); const fs = require('fs'); const uglifycss = require('uglifycss'); -if (!String.prototype.replaceAll) { - String.prototype.replaceAll = function(a, b) { - return this.split(a).join(b); - } -} let files = [ 'nipplejs.js', 'shaders.js', @@ -27,7 +22,5 @@ function minify(source){ } console.log('minifying'); fs.writeFileSync('../emulator.min.css', uglifycss.processString(fs.readFileSync('../emulator.css', 'utf8'))); -const min = minify(code); +fs.writeFileSync('../emulator.min.js', minify(code)); console.log('done!'); - -fs.writeFileSync('../emulator.min.js', min); diff --git a/data/version.json b/data/version.json index 64749ae..81380e7 100644 --- a/data/version.json +++ b/data/version.json @@ -1 +1 @@ -{ "current_version": 40.3 } +{ "current_version": 40.4 }