Skip to content

Commit

Permalink
Fix settings menu (#916)
Browse files Browse the repository at this point in the history
Fixes #911 -issue with settings menu / cmd + , not working due to invalid selector.
Backwards support for settings selector for users without the new rollout.
  • Loading branch information
reganlawton authored and CvX committed Jun 14, 2019
1 parent f3a5029 commit 9aa0ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function withMenu(
}

async function withSettingsMenu(callback: () => Promise<void> | void): Promise<void> {
await withMenu(await elementReady<HTMLElement>('._30yy._6ymd._2agf'), callback);
await withMenu(await elementReady<HTMLElement>('._30yy._6ymd._2agf,._30yy._2fug._p'), callback);
}

function selectMenuItem(itemNumber: number): void {
Expand Down

0 comments on commit 9aa0ca7

Please sign in to comment.