mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-12-15 08:30:45 +01:00
Fix addon cannot be disabled via ui
This commit is contained in:
@@ -33,7 +33,7 @@ export async function getDisabled(): Promise<Match[]> {
|
|||||||
|
|
||||||
export async function getAllDisabled(): Promise<boolean> {
|
export async function getAllDisabled(): Promise<boolean> {
|
||||||
const value = await storageGet('all')
|
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() {
|
export async function enableAll() {
|
||||||
|
|||||||
Reference in New Issue
Block a user