simplify boolean assignemnt
This commit is contained in:
parent
db391bc383
commit
4fdfacd7be
@ -11,9 +11,7 @@
|
||||
}
|
||||
fetch(src, { method: 'HEAD' })
|
||||
.then(response => {
|
||||
if(response.redirected){
|
||||
isredirected = true
|
||||
}
|
||||
isredirected = response.redirected
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user