Skip to content

Commit

Permalink
fix(panel): keep panel showing on options page
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Sep 29, 2019
1 parent cefd766 commit d43ac1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/content/redux/modules/reducer/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {
isStandalonePage,
isPopupPage,
isQuickSearchPage
isQuickSearchPage,
isOptionsPage
} from '@/_helpers/saladict'
import { createReducer } from '../../utils/createReducer'
import { initState } from '../state'
Expand Down Expand Up @@ -214,7 +215,7 @@ export const createRootReducer = () =>
withQSPanel: payload,
isPinned: false,
// no hiding if it's browser action page
isShowDictPanel: isPopupPage(),
isShowDictPanel: isPopupPage() || isOptionsPage(),
isShowBowl: false,
isQSPanel: false
}
Expand Down

0 comments on commit d43ac1f

Please sign in to comment.