diff --git a/static/js/theme.js b/static/js/theme.js index 0a41bd98e2..80ef8ff2e4 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -378,10 +378,9 @@ function initOpenapi( update, attrs ){ } function renderOpenAPI(oc) { var relBasePath = window.relearn.relBasePath; - var mod = window.relearn.themeVariantModifier; var buster = window.themeUseOpenapi.assetsBuster ? '?' + window.themeUseOpenapi.assetsBuster : ''; var print = isPrint || attrs.isPrintPreview ? "PRINT-" : ""; - var theme = print ? `${relBasePath}/css/theme-relearn-light${mod}.css${buster}` : document.querySelector( '#R-variant-style' ).attributes.href.value + var theme = print ? `${relBasePath}/css/theme-relearn-light.css${buster}` : document.querySelector( '#R-variant-style' ).attributes.href.value var swagger_theme = variants.getColorValue( print + 'OPENAPI-theme' ); var swagger_code_theme = variants.getColorValue( print + 'OPENAPI-CODE-theme' );