Remove console.log

This commit is contained in:
David Reed 2023-02-05 19:57:32 -05:00
parent 991a8316f8
commit 36244508fd
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F

View file

@ -158,12 +158,6 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
if (request.destination === 'document') { if (request.destination === 'document') {
const header = responseCtx.headers['content-disposition']; const header = responseCtx.headers['content-disposition'];
console.log(
{ header },
/filename=/i.test(header),
/^\s*?attachment/i.test(header)
);
// validate header and test for filename // validate header and test for filename
if (!/\s*?((inline|attachment);\s*?)filename=/i.test(header)) { if (!/\s*?((inline|attachment);\s*?)filename=/i.test(header)) {
// if filename= wasn't specified then maybe the remote specified to download this as an attachment? // if filename= wasn't specified then maybe the remote specified to download this as an attachment?