telepathyClient: Fix JS warning triggered by undeclared variable

https://bugzilla.gnome.org/show_bug.cgi?id=646205
This commit is contained in:
Adel Gadllah 2011-03-30 11:44:53 +02:00
parent 73ac98b193
commit 57a332bb08

View File

@ -473,6 +473,8 @@ Notification.prototype = {
var daysAgo = (now.getTime() - date.getTime()) / (24 * 60 * 60 * 1000); var daysAgo = (now.getTime() - date.getTime()) / (24 * 60 * 60 * 1000);
let format;
// Show a week day and time if date is in the last week // Show a week day and time if date is in the last week
if (daysAgo < 1 || (daysAgo < 7 && now.getDay() != date.getDay())) { if (daysAgo < 1 || (daysAgo < 7 && now.getDay() != date.getDay())) {
/* Translators: this is a time format string followed by a date. /* Translators: this is a time format string followed by a date.