Merge pull request #665 from whtv/develop

Fix docs context menu in Firefox
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-03-10 15:28:31 +01:00
commit 733cd4a67a
1 file changed
+2 -2
@@ -293,7 +293,7 @@ function newSuperalgosDocsContextMenu() {
We need to locate the parent node that it is a Paragraph,
otherwise we could end up in an inner html element.
*/
let paragraphNode = selection.baseNode
let paragraphNode = selection.anchorNode
if (paragraphNode.id !== undefined && paragraphNode.parentNode.className === "docs-tooltip") {
return false
@@ -457,4 +457,4 @@ function newSuperalgosDocsContextMenu() {
return true
}
}
}
}