File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ import {
7474 InPageSearch ,
7575 InPageSearchContainer ,
7676} from './molecules/PageSearch/InPageSearchPortal'
77- import isElectron from 'is-electron'
7877
7978interface ApplicationProps {
8079 className ?: string
@@ -222,7 +221,7 @@ const Application = ({
222221 ; ( document . activeElement as InputableDomElement ) . blur ( )
223222 }
224223
225- if ( isElectron ( ) && isPageSearchShortcut ( event ) ) {
224+ if ( usingElectron && isPageSearchShortcut ( event ) ) {
226225 preventKeyboardEventPropagation ( event )
227226 if ( showInPageSearch ) {
228227 setShowInPageSearch ( false )
@@ -434,7 +433,7 @@ const Application = ({
434433 }
435434 />
436435 < AnnouncementAlert />
437- { isElectron ( ) && < InPageSearchContainer id = { 'inPageSearchContainer' } /> }
436+ { usingElectron && < InPageSearchContainer id = { 'inPageSearchContainer' } /> }
438437 { showInPageSearch && (
439438 < InPageSearch
440439 searchQuery = { inPageSearchQuery }
You can’t perform that action at this time.
0 commit comments