34 lines
740 B
JavaScript
34 lines
740 B
JavaScript
mergeInto(LibraryManager.library, {
|
|
GetUrl: function()
|
|
{
|
|
return window.location.href;
|
|
},
|
|
StartedGame: function ()
|
|
{
|
|
localStorage.setItem('isGameOver',0);
|
|
},
|
|
FinishedGame: function ()
|
|
{
|
|
localStorage.setItem('isGameOver',1);
|
|
},
|
|
FailedGame: function ()
|
|
{
|
|
localStorage.setItem('failed', 1);
|
|
},
|
|
GetUserId: function()
|
|
{
|
|
if (typeof loadUser !== 'undefined'){
|
|
loadUser();
|
|
} else {
|
|
console.log('Confere ai meu bom');
|
|
}
|
|
},
|
|
GetToken: function()
|
|
{
|
|
if (typeof loadToken !== 'undefined'){
|
|
loadToken();
|
|
} else {
|
|
console.log('Confere ai meu bom');
|
|
}
|
|
},
|
|
}); |