@fto-consult/expo-ui 7.4.46 → 7.4.47
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
@@ -381,9 +381,9 @@ const ELECTRON = {
|
|
381
381
|
},
|
382
382
|
get printPDF (){
|
383
383
|
return (options)=>{
|
384
|
-
return createPDFFile(options).then(({path,filePathUrl})=>{
|
384
|
+
return createPDFFile(options).then(({path:mainPath,filePathUrl})=>{
|
385
385
|
const urlPath = path.resolve(__dirname,"pdf-viewer","viewer.html");
|
386
|
-
if(fs.existsSync(
|
386
|
+
if(fs.existsSync(mainPath)){
|
387
387
|
opts.loadURL = `file://${urlPath}?file=${decodeURIComponent(filePathUrl)}&locale=fr&fileName=${fileName}`;
|
388
388
|
opts.showOnLoad = true;
|
389
389
|
console.log("will print url ",options.loadURL,options);
|