Skip to content

Commit 710ce02

Browse files
committed
Merge branch 'feature/extras' of github.com:NativePHP/electron into feature/extras
2 parents e23113e + df1ed48 commit 710ce02

File tree

1 file changed

+2
-2
lines changed
  • resources/js/electron-plugin/dist/server

1 file changed

+2
-2
lines changed

resources/js/electron-plugin/dist/server/php.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ function getDefaultEnvironmentVariables(secret, apiPort) {
196196
NATIVEPHP_VIDEOS_PATH: getPath('videos'),
197197
NATIVEPHP_RECENT_PATH: getPath('recent'),
198198
NATIVEPHP_EXTRAS_PATH: app.isPackaged
199-
? join(app.getAppPath(), 'nativephp', 'extras')
200-
: join(app.getAppPath(), '..', '..', 'extras'),
199+
? join(process.resourcesPath, '..', 'extras')
200+
: join(process.env.APP_PATH, 'extras'),
201201
};
202202
if (secret && apiPort) {
203203
variables.NATIVEPHP_API_URL = `http://localhost:${apiPort}/api/`;

0 commit comments

Comments
 (0)