Closed jordwest closed 2 years ago
"javascript"
isn't a valid value for the script tag'stype
attribute, so many browsers (tested on Firefox 96 and Chrome 97) will refuse to run it.For me that meant the search and the dark/light button didn't work.
The fix is just to change
"javascript"
to"text/javascript"
:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#javascript_types
cc @ziyouwa
可能是我git push或者提交pull request搞错了,非常抱歉。我自己的commit是对的,没弄明白怎么回事。
Thanks!
"javascript"
isn't a valid value for the script tag'stype
attribute, so many browsers (tested on Firefox 96 and Chrome 97) will refuse to run it.For me that meant the search and the dark/light button didn't work.
The fix is just to change
"javascript"
to"text/javascript"
:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#javascript_types
cc @ziyouwa