From 7b958cc1ebcea473091010bd430942c5303986b7 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 15 Apr 2014 15:55:52 -0700 Subject: [PATCH] Fix custom template prompt showing "undefined" --- 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 389236051..4b7d8e39b 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -8,7 +8,7 @@ iD.ui.Background = function(context) { ['bottom', [0, 1]]], opacityDefault = (context.storage('background-opacity') !== null) ? (+context.storage('background-opacity')) : 0.5, - customTemplate; + customTemplate = ''; // Can be 0 from <1.3.0 use or due to issue #1923. if (opacityDefault === 0) opacityDefault = 0.5;