Delete leveldb folder

- Fixes bug with incorrect experimental features for some accounts
This commit is contained in:
amd64fox
2022-05-17 11:04:18 +03:00
parent e96af19e65
commit 36a7e099f2
2 changed files with 16 additions and 0 deletions

View File

@@ -224,6 +224,14 @@ if (-not $spotifyInstalled -or $upgrade_client) {
}
}
# Delete the leveldb folder (Fixes bug with incorrect experimental features for some accounts)
$leveldb = (Test-Path -LiteralPath "$spotifyDirectory2\Browser\Local Storage\leveldb")
if ($leveldb) {
$ErrorActionPreference = 'SilentlyContinue'
remove-item "$spotifyDirectory2\Browser\Local Storage\leveldb" -Recurse -Force
}
# Create backup chrome_elf.dll
if (!(Test-Path -LiteralPath $chrome_elf_bak)) {
Move-Item $chrome_elf $chrome_elf_bak

View File

@@ -224,6 +224,14 @@ if (-not $spotifyInstalled -or $upgrade_client) {
}
}
# Удалите папку leveldb (исправляет баг неверных эксперементальных фишек для некотрых аккаунтов)
$leveldb = (Test-Path -LiteralPath "$spotifyDirectory2\Browser\Local Storage\leveldb")
if ($leveldb) {
$ErrorActionPreference = 'SilentlyContinue'
remove-item "$spotifyDirectory2\Browser\Local Storage\leveldb" -Recurse -Force
}
# Создать резервную копию chrome_elf.dll
if (!(Test-Path -LiteralPath $chrome_elf_bak)) {
Move-Item $chrome_elf $chrome_elf_bak