aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/Main.java2
-rw-r--r--web/app/controller/Root.js5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/Main.java b/src/org/traccar/Main.java
index 570becc2d..e7e8d8ab9 100644
--- a/src/org/traccar/Main.java
+++ b/src/org/traccar/Main.java
@@ -23,7 +23,7 @@ import java.util.TimerTask;
import java.util.Locale;
public final class Main {
- static final long CLEAN_DELAY = 500;
+ static final long CLEAN_DELAY = 0;
static final long CLEAN_PERIOD = 24 * 60 * 60 * 1000;
private Main() {
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 53f3b83df..c8e708c09 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -81,7 +81,10 @@ Ext.define('Traccar.controller.Root', {
this.asyncUpdate(true);
}
});
- if (Ext.get('attribution') !== null) Ext.get('attribution').remove();
+ var attribution = Ext.get('attribution');
+ if (attribution) {
+ attribution.remove();
+ }
if (this.isPhone) {
Ext.create('widget.mainMobile');
} else {