mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
Add conditional for preload functions
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user