This commit is contained in:
McShelby 2023-12-03 17:16:49 +00:00
commit cb52608a01
263 changed files with 6830 additions and 6828 deletions

View file

@ -1478,6 +1478,14 @@ function updateTheme( detail ){
}));
}
(function(){
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
initChroma( true );
initMermaid( true );
initOpenapi( true );
});
})();
function useMermaid( config ){
if( !Object.assign ){
// We don't support Mermaid for IE11 anyways, so bail out early
@ -1665,9 +1673,3 @@ ready( function(){
moveTopbarButtons();
adjustEmptyTopbarContents();
})();
(function(){
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
initOpenapi( true );
});
})();