Skip to content

Commit

Permalink
give uv downloads the right name
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Jul 11, 2024
1 parent 7d18fad commit eb501ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uv.sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
}

// downloads
if (request.destination === 'document') {
if (["document", "iframe"].includes(request.destination)) {
const header = responseCtx.headers['content-disposition'];

// validate header and test for filename
Expand Down

0 comments on commit eb501ec

Please sign in to comment.