We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4698c commit 6004620Copy full SHA for 6004620
lib/config.js
@@ -63,10 +63,13 @@ var dropbox = config.dropbox || false;
63
var imgur = config.imgur || false;
64
65
function getserverurl() {
66
- var protocol = protocolusessl ? 'https://' : 'http://';
67
- var url = protocol + domain;
68
- if (urladdport && ((usessl && port != 443) || (!usessl && port != 80)))
69
- url += ':' + port;
+ var url = '';
+ if (domain) {
+ var protocol = protocolusessl ? 'https://' : 'http://';
+ url = protocol + domain;
70
+ if (urladdport && ((usessl && port != 443) || (!usessl && port != 80)))
71
+ url += ':' + port;
72
+ }
73
if (urlpath)
74
url += '/' + urlpath;
75
return url;
0 commit comments