aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-07-28 18:47:11 +0200
committersD <stoned@derpymail.org>2020-07-28 18:47:11 +0200
commitfb2129043d3c9e3483a8de3f4988a235310eb462 (patch)
treed45e855d547acabc07b40a8088774fec02e1813e /webAO
parentf571b0da2a3fe44c646bb5934df1346ec8c11501 (diff)
fill iniedit list from charlist
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 8b42907..070e7f1 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -9,7 +9,6 @@ import Fingerprint2 from 'fingerprintjs2';
import { escapeChat, encodeChat, prepChat, safe_tags } from './encoding.js';
// Load some defaults for the background and evidence dropdowns
-import character_arr from "./characters.js";
import background_arr from "./backgrounds.js";
import evidence_arr from "./evidence.js";
import sfx_arr from "./sounds.js";
@@ -380,12 +379,6 @@ class Client extends EventEmitter {
loadResources() {
document.getElementById("client_version").innerText = "version " + version;
- // Load iniedit character array to select
- const iniedit_select = document.getElementById("client_ininame");
- character_arr.forEach(inicharacter => {
- iniedit_select.add(new Option(inicharacter));
- });
-
// Load background array to select
const background_select = document.getElementById("bg_select");
background_select.add(new Option("Custom", 0));
@@ -720,6 +713,8 @@ class Client extends EventEmitter {
mute_select.add(new Option(safe_tags(chargs[0]), charid));
const pair_select = document.getElementById("pair_select");
pair_select.add(new Option(safe_tags(chargs[0]), charid));
+ const iniedit_select = document.getElementById("client_ininame");
+ iniedit_select.add(new Option(safe_tags(chargs[0])));
// sometimes ini files lack important settings
const default_options = {