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

Support protocol relative logo (and link).

parent d8a8da5e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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']) {