Skip to content

Commit dbf0545

Browse files
committed
catch occasional startup errors
1 parent 4eb5828 commit dbf0545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,13 @@ class BingWallpaperIndicator extends Button {
358358
let maxlongdate = Utils.getMaxLongDate(this._settings);
359359
this.refreshduetext =
360360
_("Next refresh") + ": " + (this.refreshdue ? this.refreshdue.format("%Y-%m-%d %X") : '-') +
361-
" (" + Utils.friendly_time_diff(this.refreshdue) + ")\n" +
361+
" (" + this.refreshdue?Utils.friendly_time_diff(this.refreshdue):"-" + ")\n" +
362362
_("Last refresh") + ": " + (maxlongdate? this._localeDate(maxlongdate, true) : '-');
363363
// also show when shuffle is next due
364364
if (this._settings.get_boolean('random-mode-enabled')) {
365365
this.refreshduetext += "\n" + _("Next shuffle")+": " +
366366
(this.shuffledue ? this.shuffledue.format("%Y-%m-%d %X") : '-') +
367-
" (" + Utils.friendly_time_diff(this.shuffledue) + ")";
367+
" (" + this.refreshdue?Utils.friendly_time_diff(this.shuffledue):"-" + ")";
368368
}
369369
this.refreshDueItem.label.set_text(this.refreshduetext);
370370
}

0 commit comments

Comments
 (0)