mirror of https://github.com/VERT-sh/VERT.git
fix: browser changing extension
This commit is contained in:
parent
09308040b0
commit
4389c06a56
|
@ -126,7 +126,8 @@ export class VertFile {
|
||||||
|
|
||||||
const blob = URL.createObjectURL(
|
const blob = URL.createObjectURL(
|
||||||
new Blob([await this.result.file.arrayBuffer()], {
|
new Blob([await this.result.file.arrayBuffer()], {
|
||||||
type: to.slice(1),
|
// type: to.slice(1),
|
||||||
|
type: "application/octet-stream", // use generic type to prevent browsers changing extension
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
|
|
Loading…
Reference in New Issue