diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-05-18 12:19:01 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-10-13 15:35:55 +0300 |
commit | fabcec8c4b92cf788801bc3f37bf617aa7dee2e4 (patch) | |
tree | 0db9c4e956dcaa4be510685e87c59af8b7f5f116 /src | |
parent | c38a459ce83a95ed3c2f93d4a7df930bbadab809 (diff) |
Use getSearchParam instead of deprecated getURLParams from server
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/files.js | 4 | ||||
-rw-r--r-- | src/helpers/url.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/files.js b/src/files.js index 82ec170a..5a155b26 100644 --- a/src/files.js +++ b/src/files.js @@ -1,4 +1,4 @@ -import { getDocumentUrlFromTemplate, getDocumentUrlForPublicFile, getDocumentUrlForFile, getSearchParam } from './helpers/url' +import { getDocumentUrlFromTemplate, getDocumentUrlForPublicFile, getDocumentUrlForFile } from './helpers/url' import PostMessageService from './services/postMessage' import Config from './services/config' import Preload from './services/preload' @@ -198,7 +198,7 @@ const odfViewer = { OC.Util.History.replaceState() FilesAppIntegration.close() - }, + } } const settings = OC.getCapabilities()['richdocuments']['config'] || {} diff --git a/src/helpers/url.js b/src/helpers/url.js index 1fe6e97b..905e2058 100644 --- a/src/helpers/url.js +++ b/src/helpers/url.js @@ -29,7 +29,7 @@ const getSearchParam = (name) => { if (results === null) { return null } - return decodeURI(results[1]) || 0 + return decodeURI(results[1]) || '' } const getWopiUrl = ({ fileId, title, readOnly, closeButton, revisionHistory }) => { |