diff options
author | Christoph (Sheogorath) Kern | 2018-01-22 20:43:46 +0100 |
---|---|---|
committer | GitHub | 2018-01-22 20:43:46 +0100 |
commit | 7de6e3211f797ed9e9e5ca3d52181f77abf030d0 (patch) | |
tree | 8dc88e060df51106eedda199fe7ea571d0ffd5b4 /public/views/slide.ejs | |
parent | fbfe3272f58232e6a7e46a82232b4dab065e2390 (diff) | |
parent | 3a752fde5117e800d65e26cbe7b15d65eb5b491e (diff) |
Merge pull request #598 from xxyy/feature/csp
Implement basic CSP support
Diffstat (limited to 'public/views/slide.ejs')
-rw-r--r-- | public/views/slide.ejs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 3572476f..942add4f 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -41,7 +41,7 @@ <link rel="stylesheet" href="<%- url %>/css/slide.css"> <!-- Printing and PDF exports --> - <script> + <script nonce="<%= cspNonce %>"> var link = document.createElement( 'link' ); link.rel = 'stylesheet'; link.type = 'text/css'; @@ -89,9 +89,7 @@ </div> </div> - <script type="text/x-mathjax-config"> - MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); - </script> + <script src="<%= url %>/js/mathjax-config-extra.js"></script> <% if(useCDN) { %> <script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0/lib/js/head.min.js" integrity="sha256-+09kLhwACKXFPDvqo4xMMvi4+uXFsRZ2uYGbeN1U8sI=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0/js/reveal.min.js" integrity="sha256-lvaInSKflJWLPqf5N5oHr/UZFwXKD6gckerdwoHqECY=" crossorigin="anonymous"></script> |