Skip to content

Commit

Permalink
Fix: Wrong cache folder in windows causing some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Oct 10, 2023
1 parent 1052317 commit dd6faca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ var queuedImages = [], processingTheImageQueue = false;

var cacheFolder = p.join(electronRemote.app.getPath('cache'), 'opencomic');

if(process.platform == 'win32' || process.platform == 'win64')
cacheFolder = cacheFolder.replace(/AppData\\Roaming/, 'AppData\\Local');

if(!fs.existsSync(cacheFolder)) fs.mkdirSync(cacheFolder);
cacheFolder = p.join(cacheFolder, 'cache');
if(!fs.existsSync(cacheFolder)) fs.mkdirSync(cacheFolder);
Expand Down

0 comments on commit dd6faca

Please sign in to comment.