Skip to content

Commit

Permalink
[APD-chore] fix preload script path
Browse files Browse the repository at this point in the history
  • Loading branch information
NaLLiFFuNT committed Aug 20, 2019
1 parent c28d04e commit b6e674a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"repository": "https://github.com/appodeal/admob-sync-app",
"description": "Appodeal AdMob Sync application",
"private": true,
"version": "0.1.26",
"version": "0.1.27",
"scripts": {
"start": "node --max_old_space_size=4096 node_modules/.bin/webpack --watch --progress --config=webpack/development.ts",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function getConfig (config: BrowserWindowConstructorOptions, backgroundColor: st
show: false,
webPreferences: {
nodeIntegration: true,
preload: path.resolve(environment.development ? process.env.PWD : process.resourcesPath, `preload.js`),
preload: environment.development ? path.join(process.env.PWD + '/preload.js') : path.join(__dirname, '/preload.js'),
...(config.webPreferences || {})
}
};
Expand Down

0 comments on commit b6e674a

Please sign in to comment.