diff --git a/lib/index.js b/lib/index.js index de53c0f9..d2d0c740 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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});