Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Nov 7, 2022
1 parent dbf4421 commit 62ad9f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dev_site/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */

const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
Expand Down
8 changes: 4 additions & 4 deletions src/node_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export class NodeConnection {
}

async useFetchData(
url: string = "/",
method: string = "GET",
body: string = "",
url = "/",
method = "GET",
body = "",
headers: Record<string, string> = { "Content-Type": "application/json" }
) {
let response = await fetch(this.host + url, {
const response = await fetch(this.host + url, {
method: method,
body: JSON.stringify(body),
headers: headers,
Expand Down

0 comments on commit 62ad9f8

Please sign in to comment.