summaryrefslogtreecommitdiff
path: root/toolkit/components
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-10-21 09:00:54 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-10-21 09:00:54 +0200
commit169792d836fadf471abb97d379cb174e8385b4dd (patch)
tree72253eec7d8646457002303c3f8056b388db38a7 /toolkit/components
parentb14014638c111537a12bbc1f09a7de66f037dae9 (diff)
downloadpalemoon-gre-169792d836fadf471abb97d379cb174e8385b4dd.tar.gz
Notifications - user settings - the immediate duration of the alert (improvements)
Diffstat (limited to 'toolkit/components')
-rw-r--r--toolkit/components/alerts/resources/content/alert.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/components/alerts/resources/content/alert.js b/toolkit/components/alerts/resources/content/alert.js
index a9450f883..03518df07 100644
--- a/toolkit/components/alerts/resources/content/alert.js
+++ b/toolkit/components/alerts/resources/content/alert.js
@@ -87,7 +87,7 @@ function prefillAlertInfo() {
function onAlertLoad() {
const ALERT_DURATION_IMMEDIATE_MIN = 4000;
const ALERT_DURATION_IMMEDIATE_MAX = 60000;
- var alertDurationImmediate = Services.prefs.getIntPref("alerts.durationImmediate");
+ let alertDurationImmediate = Services.prefs.getIntPref("alerts.durationImmediate", ALERT_DURATION_IMMEDIATE_MIN);
alertDurationImmediate = alertDurationImmediate >= ALERT_DURATION_IMMEDIATE_MIN
&& alertDurationImmediate <= ALERT_DURATION_IMMEDIATE_MAX
? alertDurationImmediate : ALERT_DURATION_IMMEDIATE_MIN;