@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 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 : isValidUrl(pUrl) ? pUrl : undefined;
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)){
@@ -380,7 +380,7 @@ const ELECTRON = {
380
380
  },
381
381
  get printPDF (){
382
382
  return (options)=>{
383
- const urlPath = path.resolve("./pdf-viewer","viewer.html");
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})=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.38",
3
+ "version": "7.4.40",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",