mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-05 12:39:31 -06:00
cleanup, fix most eslint errors
This commit is contained in:
parent
c37542932c
commit
17ffab3be9
11 changed files with 5 additions and 148 deletions
|
|
@ -24,14 +24,12 @@ const d = require("dotty");
|
|||
|
||||
const { APIError, AuthenticationError } = require("../errors");
|
||||
const { setInstanceInfo, setNamedInstanceInfo } = require("../../redux/reducers/instances").actions;
|
||||
const oauth = require("../../redux/reducers/oauth").actions;
|
||||
|
||||
function apiCall(method, route, payload, type = "json") {
|
||||
return function (dispatch, getState) {
|
||||
const state = getState();
|
||||
let base = state.oauth.instance;
|
||||
let auth = state.oauth.token;
|
||||
console.log(method, base, route, "auth:", auth != undefined);
|
||||
|
||||
return Promise.try(() => {
|
||||
let url = new URL(base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue