mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:17:01 +02:00
Fix small since bug
This commit is contained in:
parent
93191778dd
commit
04b44d0594
1 changed files with 4 additions and 3 deletions
|
@ -165,9 +165,10 @@ function AppUi(properties) {
|
||||||
|
|
||||||
if (that.notificationPollCaresAboutSince) {
|
if (that.notificationPollCaresAboutSince) {
|
||||||
var settingsKey = "notifications/" + that.buttonName + "/lastSince";
|
var settingsKey = "notifications/" + that.buttonName + "/lastSince";
|
||||||
var timestamp = Settings.getValue(settingsKey, new Date().getTime());
|
var currentTimestamp = new Date().getTime();
|
||||||
url = url + "&since=" + timestamp;
|
var settingsTimestamp = Settings.getValue(settingsKey, currentTimestamp);
|
||||||
Settings.setValue(settingsKey, timestamp);
|
url = url + "&since=" + settingsTimestamp;
|
||||||
|
Settings.setValue(settingsKey, currentTimestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.debug(that.buttonName, 'polling for notifications at endpoint', url);
|
console.debug(that.buttonName, 'polling for notifications at endpoint', url);
|
||||||
|
|
Loading…
Reference in a new issue