Fix getters in index.js

This commit is contained in:
Labhansh Agrawal 2019-10-12 15:45:25 +05:30 committed by Benjamin Staneck
parent 621a785252
commit 3eaf743b5a

View file

@ -26,10 +26,10 @@ if (process.platform === 'linux') {
const store_ = configureStore();
window.__defineGetter__('store', () => store_);
window.__defineGetter__('rpc', () => rpc);
window.__defineGetter__('config', () => config);
window.__defineGetter__('plugins', () => plugins);
Object.defineProperty(window, 'store', {get: () => store_});
Object.defineProperty(window, 'rpc', {get: () => rpc});
Object.defineProperty(window, 'config', {get: () => config});
Object.defineProperty(window, 'plugins', {get: () => plugins});
const fetchFileData = configData => {
const configInfo = Object.assign({}, configData, {bellSound: null});