Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix getFileContentPromise

sytolk7f5a5aba8711
diff --git a/app/services/platform-facade.ts b/app/services/platform-facade.ts
index 01fe2d620..615266407 100644
--- a/app/services/platform-facade.ts
+++ b/app/services/platform-facade.ts
@@ -40,6 +40,7 @@ import {
platformSaveFilePromise,
platformGetPropertiesPromise,
platformLoadTextFilePromise,
+ platformGetFileContentPromise,
platformSaveTextFilePromise,
platformSaveBinaryFilePromise,
platformCreateDirectoryPromise,
@@ -291,19 +292,10 @@ export default class PlatformFacade {
isPreview?: boolean
): Promise<any> => platformLoadTextFilePromise(filePath, isPreview);
- /* static getFileContentPromise = (
+ static getFileContentPromise = (
filePath: string,
type?: string
- ): Promise<Object> => {
- if (objectStoreAPI) {
- const param = {
- path: filePath,
- bucketName: objectStoreAPI.config().bucketName
- };
- return objectStoreAPI.getFileContentPromise(param, type);
- }
- return platformGetFileContentPromise(filePath, type);
- }; */
+ ): Promise<any> => platformGetFileContentPromise(filePath, type);
static saveFilePromise = (
filePath: string,
diff --git a/package.json b/package.json
index d5b767940..70c08975c 100644
--- a/package.json
+++ b/package.json
@@ -152,7 +152,7 @@
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.57",
"@material-ui/pickers": "^3.2.10",
- "@tagspaces/tagspaces-platforms": "1.2.13",
+ "@tagspaces/tagspaces-platforms": "1.2.15",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1035.0",
"babel-polyfill": "^6.26.0",
diff --git a/yarn.lock b/yarn.lock
index 9d52360c3..d3b46df01 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4014,10 +4014,10 @@
dependencies:
defer-to-connect "^1.0.1"
-"@tagspaces/[email protected]":
- version "1.2.13"
- resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.2.13.tgz#391e5ddd878b79c74f3fe9a57c5f9605c7526997"
- integrity sha512-VYBYZEoQ1ZCR5KvCMsRLCEmlChrPOH/Cth2CEAv868KgXI/QBVYVQ0FOpsykg+d48KxkrXQ4D9G+544uJJQZHg==
+"@tagspaces/[email protected]":
+ version "1.2.15"
+ resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.2.15.tgz#5cd1c3eaf34e8a4d1575598e6410234088f86ced"
+ integrity sha512-NxSBwrZGvVHvEMbUkSPVC+f7RhdEM22D+LgzPclXCGTS1f8mCQoH5XJHKLDR1Nlyg4n4PnpfMs3UQ4AbUJ2muw==
"@testim/chrome-version@^1.0.7":
version "1.0.7"