Browse Source

formatting

tags/v1.0.0
Simon Schmidt 3 years ago
parent
commit
b309c0b207
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      data/input.js

+ 2
- 2
data/input.js View File

@@ -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',

Loading…
Cancel
Save