Fix addon cannot be disabled via ui

This commit is contained in:
bytedream 2022-07-13 01:00:33 +02:00
parent 6d1ff3fbea
commit 53e040db46

View File

@ -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() {