diff --git a/modules/web/web.js b/modules/web/web.js index 25f4997..81a15ed 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -60,12 +60,10 @@ var webInterface = function(dbot) { this.api = { 'getUrl': function(path) { - console.log(path); + if(path.charAt(0) == '/') path = path.substr(1); if(this.config.externalPath) { - console.log('external'); return this.config.externalPath + '/' + path; } else { - console.log('internal'); return 'http://' + this.config.webHost + ':' + this.config.webPort + '/' + path; } }