- backward compatibility of patches
- added the parameter -devtools to activate the developer mode
This commit is contained in:
amd64fox
2023-11-14 13:54:11 +03:00
parent 208dceafa2
commit 7ab788ba5e
2 changed files with 10 additions and 4 deletions
+6
View File
@@ -5,6 +5,10 @@ param
[Alias("v")]
[string]$version,
[Parameter(HelpMessage = "Developer mode activation.")]
[Alias("dev")]
[switch]$devtools,
[Parameter(HelpMessage = 'Hiding podcasts/episodes/audiobooks from homepage.')]
[switch]$podcasts_off,
@@ -1222,6 +1226,8 @@ function Helper($paramname) {
$VarJs = $webjson.VariousJs
if (!($devtools)) {Remove-Json -j $VarJs -p "dev-tools"}
if ($urlform_goofy -and $idbox_goofy) {
$webjson.VariousJs.goofyhistory.replace = "`$1 const urlForm=" + '"' + $urlform_goofy + '"' + ";const idBox=" + '"' + $idbox_goofy + '"' + $webjson.VariousJs.goofyhistory.replace
}