Test if platform is empty not null to give it the local platform

This commit is contained in:
Naomi Seyfer
2013-03-01 08:30:10 -08:00
parent 9b8415d113
commit dca5741e66

View File

@@ -28,7 +28,7 @@ if (Meteor.settings &&
var hrefPath = document.location.href.split("/");
var platform = hrefPath.length && hrefPath[hrefPath.length - 1];
if (!platform)
if (_.isEmpty(platform))
platform = "local";
console.log("URL", url);
var report = function (name, last) {