element-web/src/vector/integration/index.js
2016-10-04 16:04:31 +05:30

15 lines
448 B
JavaScript

// @flow
import ElectronIntegrationManager from './ElectronIntegrationManager';
import WebIntegrationManager from './WebIntegrationManager';
let IntegrationManager = null;
if (window && window.process && window.process && window.process.type === 'renderer') {
// we're running inside electron
IntegrationManager = ElectronIntegrationManager;
} else {
IntegrationManager = WebIntegrationManager;
}
export default IntegrationManager;