Commit 61018a13 authored by Jim Tittsler's avatar Jim Tittsler

Support protocol relative logo (and link).

parent d8a8da5e
......@@ -2,7 +2,7 @@
/* jshint node: true, multistr: true, trailing: true, esnext: true */
"use strict";
const VERSION = '0.11.4',
const VERSION = '0.11.5',
JQUERY = 'http://code.jquery.com/jquery-2.1.1.min.js',
FILEPATH = '/home/www/www';
......@@ -66,10 +66,10 @@ console.log(opt);
if (opt['--theme']) {
theme = require('./themes/' + opt['--theme']);
}
if (opt['--link'] && ! /^http/i.test(opt['--link'])) {
if (opt['--link'] && (opt['--link'].indexOf('//') === -1)) {
opt['--link'] = 'http://' + opt['--link'];
}
if (opt['--logo'] && ! /^http/i.test(opt['--logo'])) {
if (opt['--logo'] && (opt['--logo'].indexOf('//') === -1)) {
opt['--logo'] = opt['--urlprefix'] + '/img/' + opt['--logo'];
}
if (opt['--options']) {
......
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