format import MacDevice from './MacDevice' ; import WindowsDevice from './WindowsDevice' ; import { FlipperServerImpl } from '../../FlipperServerImpl' ; export default ( flipperServer ) => { let device ; if ( process . platform === 'darwin' ) { device = new MacDevice ( flipperServer ) ; } else if ( process . platform === 'win32' ) { device = new WindowsDevice ( flipperServer ) ; } else { return ; } flipperServer . registerDevice ( device ) ; } ;