Commit 4dc642ee0dfb92a3ca5d6f622e791915abac8341
1 parent
d4f5cd96
Exists in
master
and in
8 other branches
Fix: values of cookies must be parsed
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/index.run.js
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | function handleAccessibility($rootScope, $timeout, $cookies, $log) { | 11 | function handleAccessibility($rootScope, $timeout, $cookies, $log) { |
| 12 | $log.debug('handleAccessibility'); | 12 | $log.debug('handleAccessibility'); |
| 13 | 13 | ||
| 14 | - var contrast = $cookies.get('dialoga_contraste'); | 14 | + var contrast = $cookies.get('dialoga_contraste') === "true"; |
| 15 | adjustContrast(contrast); | 15 | adjustContrast(contrast); |
| 16 | 16 | ||
| 17 | function adjustContrast(state){ | 17 | function adjustContrast(state){ |