From d9e6b1cc38c0d6a8ecfc41aa0670d5566573c3be Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sat, 26 Oct 2013 16:49:43 -0700 Subject: [PATCH] Fix background defaulting to 0% brightness (fixes #1923) --- js/id/ui/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/ui/background.js b/js/id/ui/background.js index 2c277a299..e268ad9ad 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -6,7 +6,7 @@ iD.ui.Background = function(context) { ['top', [0, -1]], ['right', [-1, 0]], ['bottom', [0, 1]]], - opacityDefault = (context.storage('background-opacity') !== undefined) ? + opacityDefault = (context.storage('background-opacity') !== null) ? (+context.storage('background-opacity')) : 0.5; function background(selection) {