mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-01-12 02:11:28 +00:00
fix: DoH auto-opening on startup
This commit is contained in:
parent
12eb271873
commit
700fabd970
2 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.140",
|
||||
"version": "6.4.141",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.15.5",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import { persisted } from 'svelte-persisted-store'
|
|||
|
||||
import native from '../native'
|
||||
|
||||
import SUPPORTS from './supports'
|
||||
|
||||
import { defaults } from '.'
|
||||
|
||||
const _debug = Debug('ui:settings')
|
||||
|
|
@ -63,5 +65,9 @@ uiScale.subscribe(native.setZoom)
|
|||
showDetailsInRPC.subscribe(native.toggleDiscordDetails)
|
||||
angle.subscribe(native.setAngle)
|
||||
dohSettings.subscribe(({ enableDoH, doHURL }) => {
|
||||
native.setDOH(enableDoH ? doHURL : '')
|
||||
if (SUPPORTS.isAndroid) {
|
||||
if (enableDoH) native.setDOH('')
|
||||
} else {
|
||||
native.setDOH(enableDoH ? doHURL : '')
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue