Skip to content

Commit 20ba918

Browse files
Rokt33rDavy-c
authored andcommitted
Use usingElectron instead of is-electron
1 parent fdb4281 commit 20ba918

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cloud/components/Application.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ import {
7474
InPageSearch,
7575
InPageSearchContainer,
7676
} from './molecules/PageSearch/InPageSearchPortal'
77-
import isElectron from 'is-electron'
7877

7978
interface 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}

0 commit comments

Comments
 (0)