mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 01:36:08 -07:00
tidy
This commit is contained in:
parent
d28272f6d4
commit
9c8ac98728
60 changed files with 5481 additions and 5980 deletions
|
|
@ -1,11 +1,11 @@
|
|||
var fs = require('fs');
|
||||
var fs = require("fs");
|
||||
var path = require("path");
|
||||
if (fs.existsSync(path.join(process.cwd() , "/npm"))) {
|
||||
var rootModules = path.join(process.cwd() , '/npm/node_modules/')
|
||||
} else{
|
||||
var rootModules = ''
|
||||
if (fs.existsSync(path.join(process.cwd(), "/npm"))) {
|
||||
var rootModules = path.join(process.cwd(), "/npm/node_modules/");
|
||||
} else {
|
||||
var rootModules = "";
|
||||
}
|
||||
const importFresh = require(rootModules+'import-fresh');
|
||||
const importFresh = require(rootModules + "import-fresh");
|
||||
|
||||
module.exports.filters = importFresh('./filters.js')
|
||||
module.exports.actions = importFresh('./actions.js')
|
||||
module.exports.filters = importFresh("./filters.js");
|
||||
module.exports.actions = importFresh("./actions.js");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue