diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-04-12 20:01:22 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-04-18 13:15:22 +0200 |
| commit | ce0cce15281c19d7966b074ae32d9991fdcfc06b (patch) | |
| tree | 0982ae5aa8388fa7b81af520f46a87e20db7ee5b /app/app.js | |
| parent | e515cd8f97cc5597a870d0f776a1a1b4da52da61 (diff) | |
| download | mullvadvpn-ce0cce15281c19d7966b074ae32d9991fdcfc06b.tar.xz mullvadvpn-ce0cce15281c19d7966b074ae32d9991fdcfc06b.zip | |
Use electron-log instead of console.log
Diffstat (limited to 'app/app.js')
| -rw-r--r-- | app/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/app.js b/app/app.js index 143a817cef..7ce2e3418d 100644 --- a/app/app.js +++ b/app/app.js @@ -5,6 +5,7 @@ import { Provider } from 'react-redux'; import { Router, createMemoryHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { webFrame, ipcRenderer } from 'electron'; +import log from 'electron-log'; import makeRoutes from './routes'; import configureStore from './store'; import userActions from './actions/user'; @@ -101,9 +102,9 @@ webFrame.setZoomLevelLimits(1, 1); if ('serviceWorker' in navigator) { navigator.serviceWorker.register(path.join(__dirname, 'tilecache.sw.js')) .then((registration) => { - console.log('ServiceWorker registration successful with scope: ', registration.scope); + log.info('ServiceWorker registration successful with scope: ', registration.scope); }).catch((err) => { - console.log('ServiceWorker registration failed: ', err); + log.info('ServiceWorker registration failed: ', err); }); } |
