Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/amazonLoginModal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export default class AmazonLoginModal {
show: false,
});

// Obsidian cancels http(s) navigations in every window it creates and reopens them in the
// system browser, ejecting the Amazon login flow. Drop that listener on the window we own.
this.modal.webContents.removeAllListeners('will-navigate');

// We can only change title after page is loaded since HTML page has its own title
this.modal.once('ready-to-show', () => {
this.modal.setTitle('Connect your Amazon account to Obsidian');
Expand Down
Loading