add logging

This commit is contained in:
Konstantin Haase 2012-11-18 19:53:05 +01:00
parent f37d0f4a69
commit 448501be3a

View File

@ -279,10 +279,12 @@ alert('refusing to send a token to <%= target_origin.inspect %>, not whitelisted
function cookiesCheckCallback(thirdPartyCookiesEnabled) { function cookiesCheckCallback(thirdPartyCookiesEnabled) {
if(thirdPartyCookiesEnabled) { if(thirdPartyCookiesEnabled) {
console.log("third party cookies enabled, creating iframe");
var iframe = document.createElement('iframe'); var iframe = document.createElement('iframe');
iframe.src = url; iframe.src = url;
window.document.body.appendChild(iframe); window.document.body.appendChild(iframe);
} else { } else {
console.log("third party cookies disabled, creating pop-up");
window.open(url, 'Signing in...', 'height=400,width=800'); window.open(url, 'Signing in...', 'height=400,width=800');
} }
} }