Layout changes

This commit is contained in:
Scott E. Graves
2018-12-08 18:16:04 -06:00
parent fdbbf1c1bf
commit ff87b699ab
3 changed files with 9 additions and 3 deletions

View File

@@ -11,6 +11,10 @@ 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') {
let root = document.documentElement;
root.style.setProperty('--default_font_size', '4.4vmin');
}
ReactDOM.render(<App platform={arg.data} version={packageJson.version}/>, document.getElementById('root'));
registerServiceWorker();
});