From 57a332bb08ae870dfedaa3dfe8509a8fe3ce61a6 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 30 Mar 2011 11:44:53 +0200 Subject: [PATCH] telepathyClient: Fix JS warning triggered by undeclared variable https://bugzilla.gnome.org/show_bug.cgi?id=646205 --- js/ui/telepathyClient.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index 0b33e8602..0a3f6b724 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -473,6 +473,8 @@ Notification.prototype = { 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 if (daysAgo < 1 || (daysAgo < 7 && now.getDay() != date.getDay())) { /* Translators: this is a time format string followed by a date.