forked from coolaj86/angular-image-crop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
25 lines (24 loc) · 753 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'use strict';
// NOTE: grunt automatically serves pages from localhost:9003 which WILL NOT WORK (for some things)
//
// YOU MUST point your browser to local.ldsconnect.org:9003 or YOU WILL HATE YOUR LIFE
// and spend hours debugging a problem that doesn't exist
// (I've cumulatively wasted nearly a full day of my life on such imagined problems)
//
module.exports = {
protocol: 'http'
, hostname: 'local.ldsconnect.org'
, port: 4005
, get host() {
if (
'http' === this.protocol && '80' === this.port.toString()
||'https' === this.protocol && '443' === this.port.toString()
) {
return this.hostname;
}
return this.hostname + ':' + this.port;
}
, get href() {
return this.protocol + '://' + this.host;
}
};