1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:45:56 +00:00

fix some eslint-related stuff

This commit is contained in:
Andrew Dolgov
2021-02-19 07:29:21 +03:00
parent 0832dd9d40
commit bec35200e9
8 changed files with 68 additions and 70 deletions

View File

@@ -1,6 +1,6 @@
'use strict';
/* global dijit, __, App, Ajax */
/* global dijit, __, App, dojo, __csrf_token */
/* eslint-disable no-new */
function $(id) {
@@ -111,6 +111,8 @@ String.prototype.stripTags = function() {
/* xhr shorthand helpers */
// TODO: this should become xhr { Post: ..., Json: ... }
/* exported xhrPost */
function xhrPost(url, params = {}, complete = undefined) {
console.log("xhrPost:", params);
@@ -144,6 +146,7 @@ function xhrJson(url, params = {}, complete = undefined) {
obj = JSON.parse(reply.responseText);
} catch (e) {
console.error("xhrJson", e, reply);
reject(e);
}
if (complete != undefined) complete(obj);