[gnome-shell] telepathyClient: Fix JS warning triggered by undeclared variable



commit 57a332bb08ae870dfedaa3dfe8509a8fe3ce61a6
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Wed Mar 30 11:44:53 2011 +0200

    telepathyClient: Fix JS warning triggered by undeclared variable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646205

 js/ui/telepathyClient.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 0b33e86..0a3f6b7 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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]