From 3eaf743b5a22e6ab4e2c521254c50de635a35bc7 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sat, 12 Oct 2019 15:45:25 +0530 Subject: [PATCH] Fix getters in index.js --- lib/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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});