-
Notifications
You must be signed in to change notification settings - Fork 36
trigger warning when browser dependent CDN was detected #518
Conversation
Related to #514 |
Preview : https://kota-yata.github.io/srihash.org/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick pull request! Please switch to using the URL parsing API and we're good to go.
style.css
Outdated
@@ -192,6 +192,14 @@ footer { | |||
background-color: #ffb6c1; | |||
} | |||
|
|||
#warning { | |||
background: #d5e47f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge fan of the color, but I'm also not known for my good taste. Maybe something more like a warning-orange? :) It's OK to leave this if you feel strong.y
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it little more vivid in 8698f0d . Yellow looks better to me as a warning color than orange. Bright yellow is also better for accessibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I found another bug, though. :)
We'll get more warning boxes, if you keep hitting the "hash" button.
You need to either remove the box unconditionally (before the if (isBrowserDependent)...
) or better, modify in-place if it already exists.
P.S: Thank you for working on the color.
Probably fixed in 3c8c796 |
thank you! |
Display warning if the pasted domain is matched with the constant list (
![Screen Shot 2021-12-03 at 0 20 37](https://user-images.githubusercontent.com/51294895/144555286-56ab40ee-b999-441b-a80d-b2f8a225a3a1.png)
URL_LIST
) incheckBrowserDepedency
, which currently contains only fonts.googleapis.com.