We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff193bd + 061efcf commit 4063bf8Copy full SHA for 4063bf8
src/widget.js
@@ -527,17 +527,12 @@ class Widget {
527
const now = new Date();
528
if (this.online) {
529
this.lastSynced = now;
530
- this.rsConnectedLabel.textContent = 'Synced just now';
531
- return;
532
- }
533
- if (!this.lastSynced) {
+ this.rsConnectedLabel.textContent = 'Synced';
+ } else {
534
if (!this.rsWidget.classList.contains('rs-state-unauthorized')) {
535
this.rsConnectedLabel.textContent = 'Offline';
536
}
537
538
539
- const secondsSinceLastSync = Math.round((now.getTime() - this.lastSynced.getTime())/1000);
540
- this.rsConnectedLabel.textContent = `Synced ${secondsSinceLastSync} seconds ago`;
541
542
543
isSmallScreen () {
0 commit comments