Corrected calling of 'postMessage' in loginVK.html

parent d98cd75a
Pipeline #736 passed with stages
in 9 minutes and 8 seconds
......@@ -27,12 +27,12 @@
window.opener.postMessage({
accessToken: accessToken,
refreshToken: refreshToken
});
}, window.location.origin);
// window.document.write('<div id="access_token">' + accessToken + '</div><div id="refresh_token">' + refreshToken + '</div>');
}
else
{
window.opener.postMessage("Error auth from vk");
window.opener.postMessage("Error auth from vk", window.location.origin);
}
window.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment