Add cleanup of var and scoping with even more cleanup

This commit is contained in:
Alf Hammerseth
2019-11-17 00:01:53 +01:00
parent 33e6220e43
commit e54a27b6d9
18 changed files with 335 additions and 327 deletions

View File

@@ -1,16 +1,16 @@
import {
pathThumbnails,
handlersPath,
VERSION
} from "../settings/globals";
var ColorThief = require("color-thief-jimp");
var Jimp = require("jimp");
var Functions = require(pathThumbnails + "/handlers/functions.js");
var Frontpage = require(pathThumbnails + "/handlers/frontpage.js");
var projects = require(pathThumbnails + "/handlers/aggregates.js");
var crypto = require("crypto");
var Search = require(pathThumbnails + "/handlers/search.js");
var db = require(pathThumbnails + "/handlers/db.js");
let ColorThief = require("color-thief-jimp");
let Jimp = require("jimp");
let Functions = require(handlersPath + "/functions.js");
let Frontpage = require(handlersPath + "/frontpage.js");
let projects = require(handlersPath + "/aggregates.js");
let crypto = require("crypto");
let Search = require(handlersPath + "/search.js");
let db = require(handlersPath + "/db.js");
function now_playing(list, fn, socket) {
if (typeof list !== "string" || typeof fn !== "function") {