ui: fix load

pull/118/head
undefined 4 years ago
parent cea0307a16
commit f4c3ca20a2

@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.5.2",
"version": "2.5.3",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",

@ -78,7 +78,7 @@ const xss = new Xss.FilterXSS({
});
if (argv.template && argv.template !== 'string') argv.template = findFileSync('@hydrooj/ui-default/templates');
else argv.template = findFileSync(argv.template);
else if (argv.template) argv.template = findFileSync(argv.template);
class Loader extends nunjucks.Loader {
// eslint-disable-next-line class-methods-use-this

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.6.1",
"version": "4.6.2",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",

Loading…
Cancel
Save