@fto-consult/expo-ui 7.4.57 → 7.4.59
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,7 +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 : undefined;
|
121
|
+
const url = isValidUrl(options.loadURL) || typeof options.loadURL ==='string' && options.loadURL.trim().startsWith("file://") ? options.loadURL : undefined;
|
122
122
|
if(url){
|
123
123
|
_win.loadURL(url);
|
124
124
|
} else if(options.file && fs.existsSync(options.file)){
|
@@ -127,6 +127,9 @@ function createBrowserWindow (options){
|
|
127
127
|
if(showOnLoad){
|
128
128
|
_win.once('ready-to-show', () => {
|
129
129
|
_win.show();
|
130
|
+
if(options.devTools){
|
131
|
+
_win.webContents.openDevTools();
|
132
|
+
}
|
130
133
|
});
|
131
134
|
}
|
132
135
|
_win.on('closed', function() {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
} else if(params.dataURL){
|
31
31
|
PDFObject.embed(params.dataURL,container,params);
|
32
32
|
}
|
33
|
-
console.log(params," is params heeein marrrrrrrrrrr ");
|
33
|
+
console.log(params," is params heeein marrrrrrrrrrr ",window.location,url.searchParams);
|
34
34
|
</script>
|
35
35
|
</body>
|
36
36
|
</html>
|
package/electron/preload.js
CHANGED
@@ -386,8 +386,9 @@ const ELECTRON = {
|
|
386
386
|
const urlPath = path.resolve(__dirname,"pdf-viewer","viewer.html");
|
387
387
|
if(fs.existsSync(mainPath)){
|
388
388
|
const opts = {
|
389
|
-
loadURL : `file://${urlPath}?file=${
|
389
|
+
loadURL : `file://${urlPath}?file=${encodeURIComponent(filePathUrl)}&locale=fr&fileName=${fileName}`,
|
390
390
|
showOnLoad : true,
|
391
|
+
devTools : true,
|
391
392
|
webPreferences : {
|
392
393
|
devTools : true,
|
393
394
|
...Object.assign({},options.webPreferences),
|