@saltcorn/mobile-app 1.0.0-rc.1 → 1.0.0-rc.3
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/package.json
CHANGED
|
@@ -654,15 +654,16 @@ async function make_unique_field(
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
function openFile(fileId) {
|
|
657
|
-
// TODO fileIds with whitespaces do not work
|
|
658
657
|
const config = parent.saltcorn.data.state.getState().mobileConfig;
|
|
659
658
|
const serverPath = config.server_path;
|
|
660
659
|
const token = config.jwt;
|
|
661
|
-
const url = `${serverPath}/files/serve/${
|
|
660
|
+
const url = `${serverPath}/files/serve/${encodeURIComponent(
|
|
661
|
+
fileId
|
|
662
|
+
)}?jwt=${token}`;
|
|
662
663
|
parent.cordova.InAppBrowser.open(
|
|
663
664
|
url,
|
|
664
|
-
"
|
|
665
|
-
"clearcache=yes,clearsessioncache=yes,location=no"
|
|
665
|
+
"_blank",
|
|
666
|
+
"clearcache=yes,clearsessioncache=yes,location=no,toolbar=yes,toolbarposition=top"
|
|
666
667
|
);
|
|
667
668
|
}
|
|
668
669
|
|