mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +00:00
variant: remove themeVariantModifier artifact #831
This commit is contained in:
parent
0e4aed2f00
commit
625ca2d45a
1 changed files with 1 additions and 2 deletions
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue