Commit d316a498 authored by Martin Lees's avatar Martin Lees
Browse files

Steemconnect login workflow

parent 000f4469
......@@ -134,8 +134,8 @@ class Steempress_sp_Public {
$payout = "<div name='steempress_sp_price'>0.000$</div> <a href='#'>Upvote</a> ";
$sign_in = "<a style=\"cursor:pointer\" onclick=\" window.open('http://localhost:8002/sc','',' scrollbars=yes,menubar=no,width=500,height=600, resizable=yes,toolbar=no,location=no,status=no')\">Sign in</a>
";
";
if (!is_front_page())
$comments = "<br/><div name='steempress_sp_comments'></div>";
......
......@@ -76,13 +76,20 @@
$(window).load(load_steem_capabilities)
})( jQuery );
;
/*
})( jQuery );
function steempress_sp_receiveToken(event)
{
if (event.origin !== "http://localhost:8002")
return;
var username = event.data[0];
var token = event.data[1];
*/
}
window.addEventListener("message", steempress_sp_receiveToken, false);
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