mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-15 20:00:05 +10:00
Disabled logging
This commit is contained in:
+4
-1
@@ -472,6 +472,9 @@ If (Test-Path $xpui_spa_patch) {
|
||||
|
||||
# Experimental Feature
|
||||
$xpui_js = ExpFeature
|
||||
|
||||
# Disabled logging
|
||||
$xpui_js = $xpui_js -replace "sp://logging/v3/\w+", ""
|
||||
|
||||
$writer = New-Object System.IO.StreamWriter($entry_xpui.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
@@ -492,7 +495,7 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$writer.Write($xpuiContents_vendor)
|
||||
$writer.Close()
|
||||
|
||||
# js
|
||||
# js all
|
||||
$zip.Entries | Where-Object FullName -like '*.js' | ForEach-Object {
|
||||
$readerjs = New-Object System.IO.StreamReader($_.Open())
|
||||
$xpuiContents_js = $readerjs.ReadToEnd()
|
||||
|
||||
+4
-1
@@ -610,6 +610,9 @@ If (Test-Path $xpui_spa_patch) {
|
||||
|
||||
# Удалить из xpui.js все языки кроме En и Ru
|
||||
$xpui_js = OffRujs
|
||||
|
||||
# Отключение логов
|
||||
$xpui_js = $xpui_js -replace "sp://logging/v3/\w+", ""
|
||||
|
||||
$writer = New-Object System.IO.StreamWriter($entry_xpui.Open())
|
||||
$writer.BaseStream.SetLength(0)
|
||||
@@ -629,7 +632,7 @@ If (Test-Path $xpui_spa_patch) {
|
||||
$writer.Write($xpuiContents_vendor)
|
||||
$writer.Close()
|
||||
|
||||
# js
|
||||
# js all
|
||||
$zip.Entries | Where-Object FullName -like '*.js' | ForEach-Object {
|
||||
$readerjs = New-Object System.IO.StreamReader($_.Open())
|
||||
$xpuiContents_js = $readerjs.ReadToEnd()
|
||||
|
||||
Reference in New Issue
Block a user