mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 14:10:54 +10:00
fix: declare $type variable as global
This commit is contained in:
@@ -1367,6 +1367,7 @@ function Helper($paramname) {
|
|||||||
{ -not $podcast_off -and $adsections_off } { "section" }
|
{ -not $podcast_off -and $adsections_off } { "section" }
|
||||||
}
|
}
|
||||||
$webjson.VariousJs.block_section.replace = $webjson.VariousJs.block_section.replace -f $type
|
$webjson.VariousJs.block_section.replace = $webjson.VariousJs.block_section.replace -f $type
|
||||||
|
$global:type = $type
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Remove-Json -j $VarJs -p 'block_section'
|
Remove-Json -j $VarJs -p 'block_section'
|
||||||
@@ -1760,11 +1761,10 @@ If ($test_spa) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# block subfeeds
|
# 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
|
$css += $webjson.others.block_subfeeds.add
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($null -ne $css ) { extract -counts 'one' -method 'zip' -name 'xpui.css' -add $css }
|
if ($null -ne $css ) { extract -counts 'one' -method 'zip' -name 'xpui.css' -add $css }
|
||||||
|
|
||||||
# Old UI fix
|
# Old UI fix
|
||||||
|
|||||||
Reference in New Issue
Block a user