Skip to content

Commit

Permalink
fix: webpack config desktop api
Browse files Browse the repository at this point in the history
  • Loading branch information
syns2191 committed Sep 20, 2020
1 parent 81a07e9 commit 58173a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/desktop/src/libs/ipc.ts
Expand Up @@ -157,7 +157,8 @@ export function ipcTimer(
});
// after update time slot do upload screenshot
// check config
switch (environment.SCREENSHOTS_ENGINE_METHOD) {
const appSetting = LocalStore.getStore('appSetting');
switch (appSetting.SCREENSHOTS_ENGINE_METHOD || environment.SCREENSHOTS_ENGINE_METHOD) {
case 'ElectronDesktopCapturer':
timeTrackerWindow.webContents.send('take_screenshot', {
timeSlotId: arg.timeSlotId
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/window/setup.ts
@@ -1,4 +1,4 @@
import { screen, BrowserWindow } from 'electron';
import { BrowserWindow } from 'electron';
import * as path from 'path';
import * as url from 'url';
export function createSetupWindow(setupWindow, value) {
Expand Down
1 change: 0 additions & 1 deletion tools/build/webpack.config.js
Expand Up @@ -3,7 +3,6 @@ module.exports = (config) => {
'amqp-connection-manager': 'amqp-connection-manager',
amqplib: 'amqplib',
atpl: 'atpl',
'aws-sdk': 'aws-sdk',
'babel-core': 'babel-core',
'bracket-template': 'bracket-template',
'coffee-script': 'coffee-script',
Expand Down

0 comments on commit 58173a8

Please sign in to comment.