It’d be nice if there was an API exposed that enabled us to edit the site header/footer code injection fields programmatically. The use case for this would be to stay up to date on the versions of libraries we’re using. For instance, we might be specifying version 1.20
of the PrismJS library:
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/prism.min.js" integrity="sha256-3teItwIfMuVB74Alnxw/y5HAZ2irOsCULFff3EgbtEs=" crossorigin="anonymous"></script>
Currently, in order to update to version 1.21
, we need to login to the admin page, go find the latest version, copy/paste this info over. That’s a pain and can lead to outdated versions.