Update start.mjs (#97)

This commit is contained in:
Chénglóng Mǎ 2024-01-12 13:06:01 +11:00 committed by GitHub
parent 0663e5b0b1
commit 2cc3ac7622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ function prepareDevEnv() {
return;
}
if (line.includes("extensions.zotero.dataDir") && dataDir !== "") {
return `user_pref("extensions.zotero.dataDir", "${dataDir}");`;
return `user_pref("extensions.zotero.dataDir", "${dataDir.replace(/\\\\?/g, "\\\\")}");`;
}
return line;
});