@fto-consult/expo-ui 7.4.38 → 7.4.40
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/index.js +1 -2
- package/electron/preload.js +1 -1
- package/package.json +1 -1
package/electron/index.js
CHANGED
@@ -118,8 +118,7 @@ function createBrowserWindow (options){
|
|
118
118
|
_win.setMenuBarVisibility(false)
|
119
119
|
_win.setAutoHideMenuBar(true)
|
120
120
|
}
|
121
|
-
const url = isValidUrl(options.loadURL) ? options.loadURL :
|
122
|
-
console.log("will load file ",options.file,options);
|
121
|
+
const url = isValidUrl(options.loadURL) ? options.loadURL : undefined;
|
123
122
|
if(url){
|
124
123
|
_win.loadURL(url);
|
125
124
|
} else if(options.file && fs.existsSync(options.file)){
|
package/electron/preload.js
CHANGED
@@ -380,7 +380,7 @@ const ELECTRON = {
|
|
380
380
|
},
|
381
381
|
get printPDF (){
|
382
382
|
return (options)=>{
|
383
|
-
const urlPath = path.resolve("
|
383
|
+
const urlPath = path.resolve(__dirname,"pdf-viewer","viewer.html");
|
384
384
|
console.log("will create window ",urlPath);
|
385
385
|
return createWindow({file:urlPath,modal:true,showOnLoad:true});
|
386
386
|
return createPDFFile(options).then(({path,filePathUrl})=>{
|