mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 04:40:59 +00:00
fix: correct Windows path handling in preload.js and update .gitignore for consistency
This commit is contained in:
@@ -9,9 +9,10 @@ function getDataDirPath() {
|
||||
switch (platform) {
|
||||
case 'darwin':
|
||||
return `${homeDir}/Library/Application Support/New API/data`;
|
||||
case 'win32':
|
||||
case 'win32': {
|
||||
const appData = process.env.APPDATA || `${homeDir}\\AppData\\Roaming`;
|
||||
return `${appData}\\New API\\data`;
|
||||
}
|
||||
case 'linux':
|
||||
return `${homeDir}/.config/New API/data`;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user