Description
This code handles alt-clicks on the menu item:
|
function openNewIssuePageInNewTab(event: DelegateEvent<MouseEvent, HTMLElement>): void { |
|
event.stopImmediatePropagation(); |
|
event.preventDefault(); |
|
window.open(buildRepoUrl('issues/new/choose'), '_blank'); |
|
} |
|
|
|
function initNewIssueOnce(): void { |
|
onAlteredClick( |
|
[ |
|
'li[aria-keyshortcuts="n"]:has(.octicon-issue-opened)', |
|
'button[class*="GlobalCreateMenu-module__actionMenuButton"]', |
|
], |
|
openNewIssuePageInNewTab, |
|
); |
|
} |
but our features/helpers don't apply to that modal so we should disable the modal altogether for Refined GitHub repos.
Example URLs
Here
Description
This code handles alt-clicks on the menu item:
refined-github/source/features/new-tab-links.tsx
Lines 48 to 62 in 4516c88
but our features/helpers don't apply to that modal so we should disable the modal altogether for Refined GitHub repos.
Example URLs
Here