formatting

This commit is contained in:
Simon Schmidt 2021-09-04 10:29:09 +02:00
parent 767df957cc
commit b309c0b207

View File

@ -34,7 +34,7 @@ function reloadTerminal() {
const terminal = document.querySelector("#term"); const terminal = document.querySelector("#term");
const autoscroll = document.querySelector("#scroll"); const autoscroll = document.querySelector("#scroll");
fetch(`/terminal`, { fetch('/terminal', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
@ -60,7 +60,7 @@ document.addEventListener('DOMContentLoaded', () => {
// use data- attributes for action // use data- attributes for action
document.querySelectorAll('.control').forEach((button) => { document.querySelectorAll('.control').forEach((button) => {
button.onclick = () => { button.onclick = () => {
fetch(`/action`, { fetch('/action', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',