From d75e713366fde4cb6b549f8f8df69f4a58573512 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 12 Dec 2012 16:05:02 -0500 Subject: [PATCH] Separate, smaller landing page --- js/id/oauth.js | 3 ++- land.html | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 land.html diff --git a/js/id/oauth.js b/js/id/oauth.js index 366b4e12f..ed3404b88 100644 --- a/js/id/oauth.js +++ b/js/id/oauth.js @@ -82,7 +82,8 @@ iD.OAuth = function() { .attr({ width: 640, height: 550, frameborder: 'no' }) .attr('src', baseurl + '/oauth/authorize?' + ohauth.qsString({ oauth_token: resp.oauth_token, - oauth_callback: location.href + oauth_callback: location.href.replace('index.html', '') + .replace(/#.+/, '') + 'land.html' })) .on('load', function() { if (this.contentWindow.location.search) { diff --git a/land.html b/land.html new file mode 100644 index 000000000..48fa3c09a --- /dev/null +++ b/land.html @@ -0,0 +1,23 @@ + + + + + iD + + + +

+ + +