(api) custom port == development mode

This commit is contained in:
cloudhead
2010-06-14 21:07:38 -04:00
parent 528b8e0c56
commit 0d98d2401a

View File

@@ -7,7 +7,8 @@ var sheets = [];
less.env = location.hostname == '127.0.0.1' ||
location.hostname == '0.0.0.0' ||
location.hostname == 'localhost' ||
location.protocol == 'file:' ? 'development'
location.protocol == 'file:' ||
location.port.length > 0 ? 'development'
: 'production';
less.watch = function () { return this.watchMode = true };