fix turning off tiger overlay, fixes #1349

This commit is contained in:
Ansis Brammanis
2013-04-22 12:10:48 -04:00
parent 11d5627f45
commit 036174d4dd

View File

@@ -163,7 +163,7 @@ iD.Background = function(backgroundType) {
function setHash(source) {
var tag = source.data && source.data.sourcetag;
if (!tag && source.data.name === 'Custom') {
if (!tag && source.data && source.data.name === 'Custom') {
tag = 'custom:' + source.data.template;
}
var q = iD.util.stringQs(location.hash.substring(1));