Skip to content

Commit

Permalink
Use window.location.pathname instead of .href to detect whether we're…
Browse files Browse the repository at this point in the history
… a dev build, so we don't get confused by hashes or query params
  • Loading branch information
Narciso Jaramillo committed Dec 6, 2012
1 parent cf831da commit fbd38f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define(function (require, exports, module) {
additionalGlobals.VERSION_MINOR = parsedVersion[2];
additionalGlobals.VERSION_PATCH = parsedVersion[3];

var isDevBuild = StringUtils.endsWith(decodeURI(window.location.href), "/dev/src/index.html");
var isDevBuild = StringUtils.endsWith(decodeURI(window.location.pathname), "/dev/src/index.html");
additionalGlobals.BUILD_TYPE = (isDevBuild ? strings.DEVELOPMENT_BUILD : strings.EXPERIMENTAL_BUILD);

// Insert application strings
Expand Down

0 comments on commit fbd38f0

Please sign in to comment.