@perlego-oss/text-highlighter
Advanced tools
Comparing version 2.1.0-alpha.5 to 2.1.0-alpha.6
@@ -147,3 +147,7 @@ "use strict"; | ||
}); | ||
dom(wrapper).remove(); | ||
if (wrapper) { | ||
dom(wrapper).remove(); | ||
} | ||
return nodes; | ||
@@ -150,0 +154,0 @@ }, |
{ | ||
"name": "@perlego-oss/text-highlighter", | ||
"version": "2.1.0-alpha.5", | ||
"version": "2.1.0-alpha.6", | ||
"description": "TextHighlighter allows you to highlight text on web pages.", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
@@ -126,3 +126,5 @@ import { isElementHighlight } from "./highlights"; | ||
}); | ||
dom(wrapper).remove(); | ||
if (wrapper) { | ||
dom(wrapper).remove(); | ||
} | ||
@@ -129,0 +131,0 @@ return nodes; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5511986
161514