Skip to content

Commit

Permalink
fix: custom t2s mapping words do not merge into converter.
Browse files Browse the repository at this point in the history
properly add `custom.t2s` into merge list.

fixed #33
  • Loading branch information
t7yang committed May 20, 2021
1 parent d9a1e5a commit 96bff08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/converter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const createSrcPack = async ({ default: def, custom }: PrefWord): Promise<SrcPac
custom.s2t,
],
t2s: [
{},
def.t2s.char ? await fetch(`dictionaries/t2s-char.json`).then(res => res.json()) : {},
def.t2s.phrase ? await fetch(`dictionaries/t2s-phrase.json`).then(res => res.json()) : {},
custom.t2s,
],
});

Expand Down

0 comments on commit 96bff08

Please sign in to comment.