OS X changes

This commit is contained in:
Scott E. Graves
2018-12-16 00:06:07 -06:00
parent d5595e4c92
commit 8a469b0d41
4 changed files with 20 additions and 21 deletions

View File

@@ -11,10 +11,11 @@ if (!process.versions.hasOwnProperty('electron')) {
const ipcRenderer = ((window && window.require) ? window.require('electron').ipcRenderer : null);
if (ipcRenderer) {
ipcRenderer.on(Constants.IPC_Get_Platform_Reply, (event, arg) => {
if (arg.data !== 'win32') {
if (arg.data === 'linux') {
let root = document.documentElement;
root.style.setProperty('--default_font_size', '4.8vmin');
}
ReactDOM.render(<App platform={arg.data} version={packageJson.version}/>, document.getElementById('root'));
registerServiceWorker();
});