mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Fix addon cannot be disabled via ui
This commit is contained in:
parent
6d1ff3fbea
commit
53e040db46
@ -33,7 +33,7 @@ export async function getDisabled(): Promise<Match[]> {
|
||||
|
||||
export async function getAllDisabled(): Promise<boolean> {
|
||||
const value = await storageGet('all')
|
||||
return value !== undefined ? value as unknown as boolean : false
|
||||
return value !== undefined ? String(value).toLowerCase() === 'true' : false
|
||||
}
|
||||
|
||||
export async function enableAll() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user