From ac171cab0a7c849acd88cbd2b5378f19f3bdff61 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 15 Oct 2013 13:35:20 -0400 Subject: [PATCH] Detect and dissuade stealing. Fixes #1896 --- js/id/ui/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/ui/background.js b/js/id/ui/background.js index 68b539bbb..395c9f3d7 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -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; }