Skip to content

Commit

Permalink
Merge pull request #71 from nightscout/dev
Browse files Browse the repository at this point in the history
fix some random test failures (nightscout#5341)
  • Loading branch information
gleipert committed Dec 20, 2019
2 parents ab58490 + e0667c9 commit 2baeb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/browser-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function init ($) {

function queryParms () {
var params = {};
if (location.search) {
if ((typeof location !== 'undefined') && location.search) {
location.search.substr(1).split('&').forEach(function(item) {
// eslint-disable-next-line no-useless-escape
params[item.split('=')[0]] = item.split('=')[1].replace(/[_\+]/g, ' ');
Expand Down

0 comments on commit 2baeb78

Please sign in to comment.