mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
fix: small errors
This commit is contained in:
parent
b8d55a05ca
commit
56274a6e32
@ -45,7 +45,7 @@ module.exports = utils.inherit(Object, {
|
||||
now,
|
||||
params.url,
|
||||
params.revision,
|
||||
params.streamingKey,
|
||||
params.streamingKey || '',
|
||||
params.settings
|
||||
], sql = templates.setBin;
|
||||
|
||||
|
||||
@ -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">';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user