Skip to content

Commit

Permalink
Merge pull request #1643 from matthewp/location-port
Browse files Browse the repository at this point in the history
Check location.port for truthiness
  • Loading branch information
lukeapage committed Nov 15, 2013
2 parents 8f4ef41 + de92480 commit 7869d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/less/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ var isFileProtocol = /^(file|chrome(-extension)?|resource|qrc|app):/.test(locati
less.env = less.env || (location.hostname == '127.0.0.1' ||
location.hostname == '0.0.0.0' ||
location.hostname == 'localhost' ||
location.port.length > 0 ||
(location.port &&
location.port.length > 0) ||
isFileProtocol ? 'development'
: 'production');

Expand Down

0 comments on commit 7869d46

Please sign in to comment.