Fix eslint no-undef in ES5
[MAILPOET-1085]
This commit is contained in:
@@ -22,9 +22,9 @@ define('handlebars_helpers', ['handlebars'], function(Handlebars) {
|
||||
var f = block.hash.format || 'MMM Do, YYYY';
|
||||
// check if we passed a timestamp
|
||||
if(parseInt(timestamp, 10) == timestamp) {
|
||||
return moment.unix(timestamp).format(f);
|
||||
return window.moment.unix(timestamp).format(f);
|
||||
} else {
|
||||
return moment.utc(timestamp).format(f);
|
||||
return window.moment.utc(timestamp).format(f);
|
||||
}
|
||||
} else {
|
||||
return timestamp;
|
||||
|
Reference in New Issue
Block a user