Detect and dissuade stealing. Fixes #1896

This commit is contained in:
Tom MacWright
2013-10-15 13:35:20 -04:00
parent e20a9f6734
commit ac171cab0a
+2 -2
View File
@@ -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') !== undefined) ?
(+context.storage('background-opacity')) : 0.5;
function background(selection) {
@@ -43,7 +43,7 @@ iD.ui.Background = function(context) {
function clickCustom() {
d3.event.preventDefault();
var template = window.prompt(t('background.custom_prompt'));
if (!template) {
if (!template || template.indexOf('google.com') !== -1) {
selectLayer();
return;
}