<!DOCTYPE html> | |
<html> | |
<script> | |
// Note this must be consistent with the one defined in fake_gaia.cc. | |
var AUTH_CODE = 'fake-auth-code'; | |
function onMessage(e) { | |
var targetWindow = e.source; | |
targetWindow.postMessage({ | |
'type': 'authorizationCode', | |
'authorizationCode': AUTH_CODE | |
}, e.origin); | |
} | |
window.addEventListener('message', onMessage); | |
</script> | |
<body> | |
</body> | |
</html> |