Skip to content

Commit

Permalink
fix(ui): Add lang="ja" to rikaikun content HTML so that Chrome uses…
Browse files Browse the repository at this point in the history
… Japanese fonts to render it always

Fixes #220
  • Loading branch information
melink14 authored Sep 1, 2020
1 parent 3ee2faa commit ef48b7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension/rikaicontent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const rcxContent = {

popup = topdoc.createElementNS('http://www.w3.org/1999/xhtml', 'div');
popup.setAttribute('id', 'rikaichan-window');
popup.setAttribute('lang', 'ja');
topdoc.documentElement.appendChild(popup);

popup.addEventListener(
Expand Down

0 comments on commit ef48b7c

Please sign in to comment.