mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-27 06:06:26 +02:00
Detect and dissuade stealing. Fixes #1896
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user