Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't show last updated when the setting is empty

  • Loading branch information...
commit 7028e09553b05fd6b32aef077dc9f2603217c66b 1 parent 2827bff
@marshall marshall authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 apps/settings/js/settings.js
View
5 apps/settings/js/settings.js
@@ -302,9 +302,12 @@ var Settings = {
var request = lock.get(key);
request.onsuccess = function() {
var lastUpdated = request.result[key];
+ if (!lastUpdated) {
+ return;
+ }
+
var f = new navigator.mozL10n.DateTimeFormat();
var _ = navigator.mozL10n.get;
-
lastUpdateDate.textContent = f.localeFormat(new Date(lastUpdated),
_('shortDateTimeFormat'));
};
Please sign in to comment.
Something went wrong with that request. Please try again.