mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Add conditional for preload functions
This commit is contained in:
parent
4614358163
commit
1fbdfe725c
9 changed files with 13 additions and 10 deletions
|
|
@ -3,7 +3,7 @@ import isElectron from 'is-electron';
|
|||
import { RiCheckboxBlankLine, RiCloseLine, RiSubtractLine } from 'react-icons/ri';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const browser = window.electron.browser;
|
||||
const browser = isElectron() ? window.electron.browser : null;
|
||||
|
||||
interface WindowControlsProps {
|
||||
style?: 'macos' | 'windows' | 'linux';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue