Bump version

This commit is contained in:
Ethan O'Brien 2023-07-21 10:14:04 -05:00
parent 489dc69392
commit 5c23405726
3 changed files with 7 additions and 13 deletions

View file

@ -169,11 +169,12 @@ class EmulatorJS {
}) })
} }
constructor(element, config) { constructor(element, config) {
this.ejs_version = "4.0.3"; this.ejs_version = "4.0.4";
this.ejs_num_version = 40.3; this.ejs_num_version = 40.4;
this.debug = (window.EJS_DEBUG_XX === true); this.debug = (window.EJS_DEBUG_XX === true);
if (this.debug || (window.location && ['localhost', '127.0.0.1'].includes(location.hostname))) this.checkForUpdates(); 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.config = config;
this.currentPopup = null; this.currentPopup = null;
this.touch = false; this.touch = false;
@ -986,7 +987,7 @@ class EmulatorJS {
this.elements.contextMenu.save.style.display = "none"; this.elements.contextMenu.save.style.display = "none";
this.elements.contextMenu.load.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"; this.elements.bottomBar.netplay[0].style.display = "none";
} }
} }

View file

@ -2,11 +2,6 @@ const UglifyJS = require("uglify-js");
const fs = require('fs'); const fs = require('fs');
const uglifycss = require('uglifycss'); const uglifycss = require('uglifycss');
if (!String.prototype.replaceAll) {
String.prototype.replaceAll = function(a, b) {
return this.split(a).join(b);
}
}
let files = [ let files = [
'nipplejs.js', 'nipplejs.js',
'shaders.js', 'shaders.js',
@ -27,7 +22,5 @@ function minify(source){
} }
console.log('minifying'); console.log('minifying');
fs.writeFileSync('../emulator.min.css', uglifycss.processString(fs.readFileSync('../emulator.css', 'utf8'))); 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!'); console.log('done!');
fs.writeFileSync('../emulator.min.js', min);

View file

@ -1 +1 @@
{ "current_version": 40.3 } { "current_version": 40.4 }