diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-10-21 09:00:54 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-10-21 09:00:54 +0200 |
commit | 169792d836fadf471abb97d379cb174e8385b4dd (patch) | |
tree | 72253eec7d8646457002303c3f8056b388db38a7 /toolkit/components | |
parent | b14014638c111537a12bbc1f09a7de66f037dae9 (diff) | |
download | palemoon-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.js | 2 |
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; |