Commit c8aee676 authored by 18신대성's avatar 18신대성

ESC누르면 로그아웃

parent bfb49672
......@@ -257,7 +257,11 @@ document.addEventListener('DOMContentLoaded', function()
{
if (!fbClient.isGameStarted && e.keyCode === 13)
{
fbClient.onEmailBtnClick();
fbClient.onEmailBtnClick().bind(fbClient);
}
else if (fbClient.isGameStarted && e.keyCode === 27)
{
fbClient.logOut().bind(fbClient);
}
}
}
......@@ -265,11 +269,6 @@ document.addEventListener('DOMContentLoaded', function()
console.log('done load');
});
document.onkeydown = function(e)
{
if (fbClient.isGameStarted && e.keyCode === 27) fbClient.logOut();
}
class UserData
{
constructor()
......
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