Skip to content

Commit

Permalink
Fix #88
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederisk committed Jan 24, 2024
1 parent b4ee7d7 commit 6d791df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/export_command/wikimedia_function/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export async function getDefaultBot(): Promise<MWBot | undefined> {

export async function getLoggedInBot(): Promise<MWBot | undefined> {
const config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("wikitext");
if (bot === undefined) {
// if bot is not be created or not logged in
if (bot === undefined || !bot.loggedIn) {
switch (config.get('autoLogin')) {
case 'Always':
return await login() ? bot : undefined;
Expand Down

0 comments on commit 6d791df

Please sign in to comment.