Explorar el Código

Some checks for the character importer

tags/v1.0.0
Fen Dweller hace 6 años
padre
commit
a45d53ef99
Se han modificado 1 ficheros con 13 adiciones y 3 borrados
  1. +13
    -3
      game.js

+ 13
- 3
game.js Ver fichero

@@ -4450,11 +4450,21 @@ function exportSettings() {
}

function importSettings() {
let settings = JSON.parse(document.getElementById("export-area").value);
try {
let text = document.getElementById("export-area").value;

resetSettings();
if (text == "") {
return;
}
let settings = JSON.parse(text);

loadSettings(settings);
resetSettings();

loadSettings(settings);
} catch(err) {
alert("Bad character data!");
}
}

function updateCustomCharacters() {


Cargando…
Cancelar
Guardar