Commit c2a07736 authored by NGPixel's avatar NGPixel

fix: site config host slice

parent ca87f908
...@@ -32,7 +32,7 @@ module.exports = { ...@@ -32,7 +32,7 @@ module.exports = {
if (args.host) { if (args.host) {
let siteHost = _.trim(args.host) let siteHost = _.trim(args.host)
if (siteHost.endsWith('/')) { if (siteHost.endsWith('/')) {
siteHost = siteHost.splice(0, -1) siteHost = siteHost.slice(0, -1)
} }
WIKI.config.host = siteHost WIKI.config.host = siteHost
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment