You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-20 23:30:05 +02:00
Electron: Resolves #237: Export to PDF and print option
This commit is contained in:
@@ -35,7 +35,11 @@ class FsDriverNode extends FsDriverBase {
|
||||
|
||||
async writeFile(path, string, encoding = 'base64') {
|
||||
try {
|
||||
return await fs.writeFile(path, string, { encoding: encoding });
|
||||
if (encoding === 'buffer') {
|
||||
return await fs.writeFile(path, string);
|
||||
} else {
|
||||
return await fs.writeFile(path, string, { encoding: encoding });
|
||||
}
|
||||
} catch (error) {
|
||||
throw this.fsErrorToJsError_(error, path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user