message: feat: add watchLogoutClick to public api
diff: @@ -30,6 +30,27 @@ export function watchForm(formElement: JQuery, usernameElement: JQuery, password
  new FormWatcher(formElement, usernameElement, passwordElement, settingsCallback);
  }
  +export function watchLogoutClick(element: JQuery) {
  + if (element.length === 0) {
  + throw new Error('I found no logout element.');
  + }
  +
  + Log.debug('Logout watcher armed');
  +
  + function logout(ev) {
  + ev.stopPropagation();
  + ev.preventDefault();
  +
  + end().then(() => {
  + $(this).off('click', null, logout);
  +
  + $(this).get(0).click();
  + });
  + }
  +
  + element.off('click', null, logout).click(logout);
  +}
  +
  export function enableDebugMode() {
  let storage = Client.getStorage();
  