import { HomePageElements } from 'root/windows/home/home' ; import { sendMessageToIpcMain } from 'root/windows/messages' ; export function LORlogin ( token , uid , nick , source ? ) { HomePageElements . LorTokenInput . classList . add ( 'hidden' ) ; HomePageElements . UserCredentials . innerHTML = `<div class="stringTitle">LOR nick:</div><strong>Awaiting...</strong>` ; HomePageElements . TokenResponse . innerHTML = `<div class="stringTitle">Current user:</div><strong>${ nick }</strong>` ; HomePageElements . StatusMessage . innerHTML = 'Logged in...' ; HomePageElements . StatusMessage . style . color = '#22a83a' ; sendMessageToIpcMain ( 'token-input' , { token , uid , nick , overlay : false , game : 'lor' , } ) ; HomePageElements . BrightButton . innerHTML = '<img class="imgico" id="uploadIco" width="20" /> Sync Account' ; }