UNPKG

276 BJavaScriptView Raw
1(function () {
2 var config = JSON.parse(document.getElementById('config').innerHTML);
3
4 if (config.setCredentialToken) {
5 sessionStorage[config.storagePrefix + config.credentialToken] = config.credentialSecret;
6 }
7
8 window.location = config.redirectUrl;
9})();