fix: small errors

This commit is contained in:
Remy Sharp 2017-10-12 14:01:50 +01:00
parent b8d55a05ca
commit 56274a6e32
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ module.exports = utils.inherit(Object, {
now,
params.url,
params.revision,
params.streamingKey,
params.streamingKey || '',
params.settings
], sql = templates.setBin;

View File

@ -676,7 +676,7 @@ function mountRouter(expressApp) {
return !!ad.active;
}).shift();
var pixels = (ad.pixel || '').split('||');
var pixels = ((ad || {}).pixel || '').split('||');
var time = Math.round(Date.now() / 10000) | 0;
var imgs = pixels.map(function (pixel) {
return '<img src="' + pixel.replace('[timestamp]', time) + '" height=1 width=1 border=0 style="display:none">';