serlo / athene2

Moved to https://github.com/serlo/serlo.org monorepo
https://github.com/serlo/serlo.org/tree/master/packages/public/server
Apache License 2.0
19 stars 18 forks source link

Silence the console #906

Closed elbotho closed 5 years ago

elbotho commented 5 years ago

If I open an article I get quite some output in the console. Could we silence that a bit? :)

Example

Unrecognized Content-Security-Policy directive 'font-src:'.
---
########################
# athene2-assets@4.0.0 #
########################
---
Uncaught ReferenceError: hj is not defined
    at window.hjBootstrap (hotjar.js:120)
    at Object.50 (hotjar.js:120)
    at n (hotjar.js:120)
    at hotjar.js:120
    at hotjar.js:120
---
Refused to load the font 'about:blank' because it violates the following Content Security Policy directive: "default-src https: 'unsafe-inline' 'unsafe-eval'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.
elbotho commented 5 years ago

mathjax do these still appear with the editor a new version of mathjax?

Knorrke commented 5 years ago

Second one is for sentry iirc. Hotjar error is thrown in the hotjar file itself, so we cant really do anything there. Thought thats caused by adblock or similar, but havent checked further.

Whats the mathjax issue?

elbotho commented 5 years ago

just a guess that the first and last message have to do with mathjax, but no idea where that is happening and did not find any references.

Knorrke commented 5 years ago

Looks like i was wrong, we have to set hj for some reason now^^ I opened #907 for hotjar, see #908 for the fix.

inyono commented 5 years ago

do these still appear with the editor a new version of mathjax? Not sure what you mean

elbotho commented 5 years ago

right so together with #475 now all seems to be tracked.