Skip to content

Commit

Permalink
Merge pull request vault-development#149 from devapro/devapro-patch-f…
Browse files Browse the repository at this point in the history
…ix-crash-android

fix crash android
  • Loading branch information
matc4 authored Sep 13, 2018
2 parents 7dc8dee + 6010139 commit 19f443a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class SvgUri extends Component{
inspectNode(node){
// Only process accepted elements
if (!ACCEPTED_SVG_ELEMENTS.includes(node.nodeName)) {
return null;
return (<View />);
}

// Process the xml node
Expand Down Expand Up @@ -289,7 +289,7 @@ class SvgUri extends Component{
const inputSVG = this.state.svgXmlData.substring(
this.state.svgXmlData.indexOf("<svg "),
(this.state.svgXmlData.indexOf("</svg>") + 6)
);
).replace(/<!-(.*?)->/g, '');

const doc = new xmldom.DOMParser().parseFromString(inputSVG);

Expand Down

0 comments on commit 19f443a

Please sign in to comment.