Skip to content

Commit

Permalink
Merge pull request tangly1024#2900 from tangly1024/fix/redirect-uri
Browse files Browse the repository at this point in the history
redirect 语言bug
  • Loading branch information
tangly1024 authored Oct 29, 2024
2 parents a455fe5 + 77f4106 commit 222e981
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ export function GlobalContextProvider(props) {
useEffect(() => {
initDarkMode(updateDarkMode, defaultDarkMode)
initLocale(lang, locale, updateLang, updateLocale)
if (NOTION_CONFIG?.REDIRECT_LANG) {
if (
NOTION_CONFIG?.REDIRECT_LANG &&
JSON.parse(NOTION_CONFIG?.REDIRECT_LANG)
) {
redirectUserLang(NOTION_PAGE_ID)
}
setOnLoading(false)
Expand Down

0 comments on commit 222e981

Please sign in to comment.