From 4223dad1711a896ae72af96b3771bb49ee91f40a Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Tue, 21 Jan 2025 09:18:31 +0300 Subject: [PATCH] fix: declare $type variable as global --- run.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.ps1 b/run.ps1 index 471b514..810aa50 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1367,6 +1367,7 @@ function Helper($paramname) { { -not $podcast_off -and $adsections_off } { "section" } } $webjson.VariousJs.block_section.replace = $webjson.VariousJs.block_section.replace -f $type + $global:type = $type } else { Remove-Json -j $VarJs -p 'block_section' @@ -1760,11 +1761,10 @@ If ($test_spa) { } } # block subfeeds - if ($type -eq "all" -or $type -eq "podcast") { + if ($global:type -eq "all" -or $global:type -eq "podcast") { $css += $webjson.others.block_subfeeds.add } - if ($null -ne $css ) { extract -counts 'one' -method 'zip' -name 'xpui.css' -add $css } # Old UI fix