From 625ca2d45a67110a77d19500a89fcb97c86fe24e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 19 Apr 2024 22:40:45 +0200 Subject: [PATCH] variant: remove themeVariantModifier artifact #831 --- static/js/theme.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' );