Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Oct 30, 2024
2 parents 3f9e327 + 222e981 commit a0f5f2d
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 a0f5f2d

Please sign in to comment.