Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix: Notification not displayed when logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed May 4, 2023
1 parent d6d1620 commit 04ef9f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion static/wikimirror.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/wikimirror.tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@
}
await mw.loader.using('mediawiki.api');
try {
this.showNotice(`<span>${mw.message('logging-out-notify')}</span>`);
await new mw.Api().postWithEditToken({action: 'logout'});
location.reload();
} catch {
Expand Down

0 comments on commit 04ef9f9

Please sign in to comment.