variant: remove themeVariantModifier artifact #831

This commit is contained in:
Sören Weber 2024-04-19 22:40:45 +02:00
parent 0e4aed2f00
commit 625ca2d45a
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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' );