fix mathjax, add half of brave rejection code

This commit is contained in:
xenia 2021-06-24 00:33:16 -04:00
parent 2c4d60a707
commit 0ff00dd621
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ http {
gzip on; gzip on;
map $http_user_agent $mathjax_polyfill { map $http_user_agent $mathjax_polyfill {
default "<script type='text/javascript' src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>"; default "<script type='text/javascript' src='https://www.unpkg.com/mathjax@3.2.0/es5/tex-mml-chtml.js'></script><script type='text/javascript'>async function brave_test() {if((navigator.brave && await navigator.brave.isBrave() || false)&&location.pathname!='/unsupported-browser'){location.href='/unsupported-browser';}}; brave_test();</script>";
"~Mozilla.*Firefox/[0-9]+" ""; "~Mozilla.*Firefox/[0-9]+" "";
} }