mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Fix custom template prompt showing "undefined"
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user