From b309c0b2074b07bca2dac6ff70c070f477329883 Mon Sep 17 00:00:00 2001 From: Simon Schmidt Date: Sat, 4 Sep 2021 10:29:09 +0200 Subject: [PATCH] formatting --- data/input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/input.js b/data/input.js index f91afc8..79f2156 100644 --- a/data/input.js +++ b/data/input.js @@ -34,7 +34,7 @@ function reloadTerminal() { const terminal = document.querySelector("#term"); const autoscroll = document.querySelector("#scroll"); - fetch(`/terminal`, { + fetch('/terminal', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', @@ -60,7 +60,7 @@ document.addEventListener('DOMContentLoaded', () => { // use data- attributes for action document.querySelectorAll('.control').forEach((button) => { button.onclick = () => { - fetch(`/action`, { + fetch('/action', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded',