Fix custom template prompt showing "undefined"

This commit is contained in:
John Firebaugh
2014-04-15 15:55:52 -07:00
parent 273b5e2f63
commit 7b958cc1eb
+1 -1
View File
@@ -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;