Skip to content

Commit

Permalink
fix: 默认黑白名单key 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Jul 11, 2024
1 parent 4e0c911 commit 1b6452c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ function initialize_extension() {
wd_hover_settings,
wd_online_dicts,
wd_show_percents,
black_list,
white_list,
wd_black_list,
wd_white_list,
wd_is_enabled
} = result
const default_options = {}
Expand Down Expand Up @@ -228,10 +228,10 @@ function initialize_extension() {
if (typeof wd_is_enabled === 'undefined') {
default_options['wd_is_enabled'] = true
}
if (typeof black_list === 'undefined') {
if (typeof wd_black_list === 'undefined') {
default_options['wd_black_list'] = {}
}
if (typeof white_list === 'undefined') {
if (typeof wd_white_list === 'undefined') {
default_options['wd_white_list'] = {}
}
if (Object.keys(default_options).length) {
Expand Down

0 comments on commit 1b6452c

Please sign in to comment.