Logout action
opened this issue · comments
Deleted user commented
Hey everyone,
There is a action called new conversation so you can make a new conversation.
function newConversation () {
document.querySelector('button.icon-chat').click();
document.querySelector('input.input-search').focus();
var header = document.querySelector('div.drawer-title');
header.style.left = '0px';
header.style.bottom = '12px';
}
How can I make a new action to logout from WhatsApp Web?
Here is how I started:
function logout () {
document.querySelector('button.icon-menu').click();
document.querySelector('button.Log out').click();
var header = document.querySelector('div.drawer-title');
header.style.left = '0px';
header.style.bottom = '12px';
}
Can somebody help me?