Optimization Detective not working on non-HTTPS site #1904
Labels
[Plugin] Optimization Detective
Issues for the Optimization Detective plugin
[Type] Bug
An existing feature is broken
Milestone
Bug Description
The detection script uses
crypto.subtle.digest
, but the crypto API is only available in secure (HTTPS) contexts.I noticed by accident as I was accessing my local site without HTTPS.
Then I got a JS error:
While most sites are using HTTPS nowadays anyway, I think this potential error should be caught to avoid errors.
It can then log to the console that detection is not possible or so.
Steps to reproduce
Screenshots
Additional Context
The text was updated successfully, but these errors were encountered: