Skip to content

Commit

Permalink
fix(@lexical/devtools): Fixed handling of the restricted pages in Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleT committed Apr 23, 2024
1 parent 0b02af5 commit f18c876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export default class ActionIconWatchdog {

private isRestrictedBrowserPage(url: string | undefined) {
return (
!url || ['chrome:', 'about:', 'file:'].includes(new URL(url).protocol)
!url ||
['chrome:', 'about:', 'file:', 'edge:'].includes(new URL(url).protocol)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function App({tabID}: Props) {
) : (
<Alert status="info">
<AlertIcon />
No Lexical editor found on the page.
No Lexical editors found on the page.
</Alert>
)}
</Box>
Expand Down

0 comments on commit f18c876

Please sign in to comment.