@fto-consult/expo-ui 7.4.45 → 7.4.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/electron/preload.js +2 -2
- package/package.json +1 -1
package/electron/preload.js
CHANGED
@@ -130,10 +130,10 @@ const createPDFFile = (options)=>{
|
|
130
130
|
if(!fileName.endsWith(`.${fileExtension}`)){
|
131
131
|
fileName += "."+fileExtension
|
132
132
|
}
|
133
|
-
return fs.writeFile(
|
133
|
+
return fs.writeFile(path.join(dir,filename), content,{charset},(err)=>{
|
134
134
|
if(!err) {
|
135
135
|
const fileUrl = 'file://'+(dir+'/'+filename).replaceAll("\\","/");
|
136
|
-
const p =
|
136
|
+
const p = path.join(dir,filename);
|
137
137
|
const filePathUrl = 'file://'+p;
|
138
138
|
resolve({content,fileName:filename,filename,path:p,filePathUrl,filePathUri:filePathUrl,fileUrl,filePath:p,fileUri:fileUrl})
|
139
139
|
} else {
|