diff --git a/mail_check_immediately/static/src/js/main.js b/mail_check_immediately/static/src/js/main.js index 2028566..8f1aa1d 100755 --- a/mail_check_immediately/static/src/js/main.js +++ b/mail_check_immediately/static/src/js/main.js @@ -1,4 +1,5 @@ openerp.mail_check_immediately = function(instance, local) { + "use strict"; instance.mail.Wall.include({ init: function() { this._super.apply(this, arguments); @@ -42,7 +43,7 @@ openerp.mail_check_immediately = function(instance, local) { context: new instance.web.CompoundContext(), }) .then(function(res) { - var value; + var value = null; if (res) value = $.timeago(res); value = value || "undefined"; _this.$el