Skip to content

Commit 6bb27fb

Browse files
committed
Implement davidshimjs#305
1 parent 2894582 commit 6bb27fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qrcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ var QRCode;
11131113
return Drawing;
11141114
})();
11151115

1116-
var useSVG = document.documentElement.tagName.toLowerCase() === "svg";
1116+
var useSVG = global.document && document.documentElement.tagName.toLowerCase() === "svg";
11171117

11181118
// Drawing in DOM by using Table tag
11191119
var Drawing = useSVG

0 commit comments

Comments
 (0)