bugfix and version
This commit is contained in:
parent
becf549dce
commit
c4525027da
@ -76,7 +76,7 @@ function docRangeFromPoint(point) {
|
|||||||
if (!document.caretRangeFromPoint) {
|
if (!document.caretRangeFromPoint) {
|
||||||
document.caretRangeFromPoint = (x, y) => {
|
document.caretRangeFromPoint = (x, y) => {
|
||||||
const position = document.caretPositionFromPoint(x,y);
|
const position = document.caretPositionFromPoint(x,y);
|
||||||
if (position) {
|
if (position && position.offsetNode) {
|
||||||
const range = document.createRange();
|
const range = document.createRange();
|
||||||
range.setStart(position.offsetNode, position.offset);
|
range.setStart(position.offsetNode, position.offset);
|
||||||
range.setEnd(position.offsetNode, position.offset);
|
range.setEnd(position.offsetNode, position.offset);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Yomichan",
|
"name": "Yomichan",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
|
|
||||||
"description": "Japanese dictionary with Anki integration",
|
"description": "Japanese dictionary with Anki integration",
|
||||||
"icons": {"16": "mixed/img/icon16.png", "48": "mixed/img/icon48.png", "128": "mixed/img/icon128.png"},
|
"icons": {"16": "mixed/img/icon16.png", "48": "mixed/img/icon48.png", "128": "mixed/img/icon128.png"},
|
||||||
|
Loading…
Reference in New Issue
Block a user