Skip to content
This repository was archived by the owner on Jun 13, 2022. It is now read-only.

Commit fb3154f

Browse files
committed
use load settings for removeCache
1 parent 96c4446 commit fb3154f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/flex-tool-bar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export default {
587587
delete require.cache[filePath];
588588

589589
try {
590-
let relativeFilePath = path.relative(path.join(path.dirname(process.execPath), 'resources', 'app', 'static'), filePath);
590+
let relativeFilePath = path.relative(path.join(atom.getLoadSettings().resourcePath, 'static'), filePath);
591591
if (process.platform === 'win32') {
592592
relativeFilePath = relativeFilePath.replace(/\\/g, '/');
593593
}

0 commit comments

Comments
 (0)