From abe307ee57804dbabcc916e8bc93821c00435a4f Mon Sep 17 00:00:00 2001 From: Beef Date: Wed, 8 Mar 2023 20:49:41 +0000 Subject: [PATCH] [Bugfix] Fix AMOLED state on 170.2+ --- src/lib/fixes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/fixes.ts b/src/lib/fixes.ts index f1ebbd0..c8971a5 100644 --- a/src/lib/fixes.ts +++ b/src/lib/fixes.ts @@ -27,7 +27,7 @@ function onDispatch({ locale }: { locale: string }) { } // We're done here! - FluxDispatcher.unsubscribe("I18N_LOAD_START", onDispatch); + FluxDispatcher.unsubscribe("I18N_LOAD_SUCCESS", onDispatch); } -export default () => FluxDispatcher.subscribe("I18N_LOAD_START", onDispatch); \ No newline at end of file +export default () => FluxDispatcher.subscribe("I18N_LOAD_SUCCESS", onDispatch); \ No newline at end of file