mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-20 00:15:40 +00:00
fix (edge): disable automatic open office files in the browser
This commit is contained in:
@@ -11,7 +11,12 @@ export function getFilename() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getDownloadUrl() {
|
export function getDownloadUrl() {
|
||||||
return forwardURLParams("api/files/cat?path=" + encodeURIComponent(getCurrentPath()), ["share"]);
|
return forwardURLParams(
|
||||||
|
"api/files/cat?"+
|
||||||
|
"path=" + encodeURIComponent(getCurrentPath()) + "&"+
|
||||||
|
"name=" + encodeURIComponent(getFilename()),
|
||||||
|
["share"],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCurrentPath(start = "/view/") {
|
export function getCurrentPath(start = "/view/") {
|
||||||
|
|||||||
Reference in New Issue
Block a user