Remove document.write’s to allow CSP to be re-enabled

This commit is contained in:
Jonny Barnes 2017-03-07 18:52:48 +00:00
parent 6befc9b075
commit a73e3c76dc
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,8 @@
# Changelog
## Version 0.3.4 (2017-03-07)
- Remove document.write to allow CSP to work
## Version 0.3.3 (2017-03-03)
- Fix issue when accessing /admin

View file

@ -28,10 +28,6 @@ New Note «
@stop
@section('scripts')
<script>
window.Promise || document.write('<script src="https://unpkg.com/promise-polyfill/promise.min.js"><\/script>');
window.fetch || document.write('<script src="https://unpkg.com/whatwg-fetch/fetch.js"><\/script>');
</script>
<script defer src="/assets/js/newnote.js"></script>
<link rel="stylesheet" href="/assets/frontend/alertify.css">