aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-03-23 21:45:57 +0100
committerstonedDiscord <Tukz@gmx.de>2022-03-23 21:45:57 +0100
commit415eff55a9db8da9077e0e1dd5d3c3672ff66e8a (patch)
tree7c65198ca022460524ee856718fd979ad857747e
parent844dc7e5fe80bca530ccbf62198f183284074108 (diff)
remove unused settings
-rw-r--r--public/client.html27
-rw-r--r--webAO/client.js6
2 files changed, 3 insertions, 30 deletions
diff --git a/public/client.html b/public/client.html
index f30e708..28a0bf1 100644
--- a/public/client.html
+++ b/public/client.html
@@ -507,33 +507,6 @@
placeholder="Put 1 callword per line here" onchange="changeCallwords()"></textarea>
<br>
<br>
- <span style="color:red">&#8595; Only touch these settings if you know what you are doing. &#8595;</span>
- <br>
- <br>
- <label for="client_encoding">Client side chat encoding:</label>
- <select id="client_encoding" name="client_encoding">
- <option value="none" selected>None</option>
- <option value="unicode">Unicode</option>
- <option value="utf16">UTF-16</option>
- </select>
- <br>
- <br>
- <label for="client_decoding">Client side chat decoding:</label>
- <select id="client_decoding" name="client_decoding">
- <option value="none">None</option>
- <option value="unicode" selected>Unicode</option>
- <option value="utf16">UTF-16</option>
- </select>
- <br>
- <br>
- <label for="bg_command">Change background command:</label>
- <input id="bg_command" name="bg_command" type="text" value="bg $1">
- <br>
- <br>
- <label for="randomchar_command">Random character command:</label>
- <input id="randomchar_command" name="randomchar_command" type="text" value="randomchar">
- <br>
- <br>
<span style="color:blue">Changing these settings will save them as a cookie.<br>
By doing so, you agree to it being saved.<br>
If you don't agree, disable cookies for this site in your browser.</span>
diff --git a/webAO/client.js b/webAO/client.js
index dfba169..6a2947c 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -9,7 +9,7 @@ import { EventEmitter } from 'events';
import fileExistsSync from './utils/fileExistsSync';
import {
escapeChat, encodeChat, prepChat, safeTags,
-} from './encoding.js';
+} from './encoding';
import mlConfig from './utils/aoml';
// Load some defaults for the background and evidence dropdowns
import vanilla_character_arr from './constants/characters.js';
@@ -2957,7 +2957,7 @@ window.updateActionCommands = updateActionCommands;
*/
export function changeBackgroundOOC() {
const selectedBG = document.getElementById('bg_select');
- const changeBGCommand = document.getElementById('bg_command').value;
+ const changeBGCommand = "bg $1";
const bgFilename = document.getElementById('bg_filename');
let filename = '';
@@ -2987,7 +2987,7 @@ window.changeRoleOOC = changeRoleOOC;
* Random character via OOC.
*/
export function randomCharacterOOC() {
- client.sendOOC(`/${document.getElementById('randomchar_command').value}`);
+ client.sendOOC(`/randomchar`);
}
window.randomCharacterOOC = randomCharacterOOC;