Fix missing bytebuffer in preloads
This commit is contained in:
parent
006b5760c6
commit
67e2c39b96
|
@ -8,6 +8,9 @@ const config = url.parse(window.location.toString(), true).query;
|
|||
const { locale } = config;
|
||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||
|
||||
global.dcodeIO = global.dcodeIO || {};
|
||||
global.dcodeIO.ByteBuffer = require('bytebuffer');
|
||||
|
||||
window.getEnvironment = () => config.environment;
|
||||
window.getVersion = () => config.version;
|
||||
window.getCommitHash = () => config.commitHash;
|
||||
|
|
|
@ -8,6 +8,9 @@ const config = url.parse(window.location.toString(), true).query;
|
|||
const { locale } = config;
|
||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||
|
||||
global.dcodeIO = global.dcodeIO || {};
|
||||
global.dcodeIO.ByteBuffer = require('bytebuffer');
|
||||
|
||||
window.getVersion = () => config.version;
|
||||
window.theme = config.theme;
|
||||
window.i18n = i18n.setup(locale, localeMessages);
|
||||
|
|
|
@ -8,6 +8,9 @@ const config = url.parse(window.location.toString(), true).query;
|
|||
const { locale } = config;
|
||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||
|
||||
global.dcodeIO = global.dcodeIO || {};
|
||||
global.dcodeIO.ByteBuffer = require('bytebuffer');
|
||||
|
||||
window.React = require('react');
|
||||
window.ReactDOM = require('react-dom');
|
||||
|
||||
|
|
|
@ -8,6 +8,9 @@ const config = url.parse(window.location.toString(), true).query;
|
|||
const { locale } = config;
|
||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||
|
||||
global.dcodeIO = global.dcodeIO || {};
|
||||
global.dcodeIO.ByteBuffer = require('bytebuffer');
|
||||
|
||||
window.getVersion = () => config.version;
|
||||
window.theme = config.theme;
|
||||
window.i18n = i18n.setup(locale, localeMessages);
|
||||
|
|
Loading…
Reference in New Issue