fix: set dns to empty on disable

This commit is contained in:
ThaUnknown 2025-09-13 20:01:01 +02:00
parent 77dc221578
commit abdf02d9c5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.136",
"version": "6.4.137",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -63,5 +63,5 @@ uiScale.subscribe(native.setZoom)
showDetailsInRPC.subscribe(native.toggleDiscordDetails)
angle.subscribe(native.setAngle)
dohSettings.subscribe(({ enableDoH, doHURL }) => {
if (enableDoH) native.setDOH(doHURL)
native.setDOH(enableDoH ? doHURL : '')
})