chore: remove unused imports/variables
This commit is contained in:
parent
7db84a15e2
commit
3e5ccea23c
5 changed files with 5 additions and 6 deletions
|
@ -25,7 +25,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
|||
standardHeaders: true,
|
||||
legacyHeaders: false,
|
||||
keyGenerator: req => generateHmac(getIP(req), ipSalt),
|
||||
handler: (req, res, next, opt) => {
|
||||
handler: (req, res) => {
|
||||
return res.status(429).json({
|
||||
"status": "rate-limit",
|
||||
"text": loc(languageCode(req), 'ErrorRateLimit')
|
||||
|
@ -38,7 +38,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
|||
standardHeaders: true,
|
||||
legacyHeaders: false,
|
||||
keyGenerator: req => generateHmac(getIP(req), ipSalt),
|
||||
handler: (req, res, next, opt) => {
|
||||
handler: (req, res) => {
|
||||
return res.status(429).json({
|
||||
"status": "rate-limit",
|
||||
"text": loc(languageCode(req), 'ErrorRateLimit')
|
||||
|
|
|
@ -679,7 +679,7 @@ window.onload = () => {
|
|||
}
|
||||
}
|
||||
|
||||
eid("url-input-area").addEventListener("keydown", (e) => {
|
||||
eid("url-input-area").addEventListener("keydown", () => {
|
||||
button();
|
||||
})
|
||||
eid("url-input-area").addEventListener("keyup", (e) => {
|
||||
|
|
|
@ -8,7 +8,7 @@ let loc = {}
|
|||
let languages = [];
|
||||
|
||||
export async function loadLoc() {
|
||||
const files = await fs.promises.readdir(locPath).catch((e) => { return [] });
|
||||
const files = await fs.promises.readdir(locPath).catch(() => []);
|
||||
files.forEach(file => {
|
||||
loc[file.split('.')[0]] = loadJSON(`${locPath}/${file}`);
|
||||
languages.push(file.split('.')[0])
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import psl from "psl";
|
||||
import { genericUserAgent } from "../../config.js";
|
||||
|
||||
const API_KEY = 'jrsCWX1XDuVxAFO4GkK147syAoN8BJZ5voz8tS80bPcj26Vc5Z';
|
||||
const API_BASE = 'https://api-http2.tumblr.com';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { createHmac, createCipheriv, createDecipheriv, scryptSync } from "crypto";
|
||||
import { createHmac, createCipheriv, createDecipheriv } from "crypto";
|
||||
|
||||
const algorithm = "aes256"
|
||||
|
||||
|
|
Loading…
Reference in a new issue