mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-16 04:50:01 -04:00
give uv downloads the right name
This commit is contained in:
parent
7d18fadc2c
commit
eb501ecf1b
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
// downloads
|
// downloads
|
||||||
if (request.destination === 'document') {
|
if (["document", "iframe"].includes(request.destination)) {
|
||||||
const header = responseCtx.headers['content-disposition'];
|
const header = responseCtx.headers['content-disposition'];
|
||||||
|
|
||||||
// validate header and test for filename
|
// validate header and test for filename
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue