Embed CSP meta tag and stop using script-src unsafe-inline
This commit is contained in:
parent
c3e6a30789
commit
ec20e1ece2
3 changed files with 10 additions and 11 deletions
|
@ -29,6 +29,11 @@ require('highlight.js/styles/github.css');
|
|||
import './rageshakesetup';
|
||||
import './modernizr';
|
||||
|
||||
// load service worker if available on this platform
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('sw.js');
|
||||
}
|
||||
|
||||
// Ensure the skin is the very first thing to load for the react-sdk. We don't even want to reference
|
||||
// the SDK until we have to in imports.
|
||||
console.log("Loading skin...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue