token.js | |
|---|---|
(function() { | |
|
| var token = remoteStorage.receiveToken(); |
| We send the token back to our main page | window.opener.postMessage(token, location.protocol+'//'+location.host); |
| and close the window. | window.close();
})();
|