This commit is contained in:
Rich Harris
2017-12-15 18:34:38 -05:00
parent 0fe93cd177
commit 7e65c481d8

View File

@@ -103,8 +103,6 @@ const app = {
const a = findAnchor(event.target);
if (!a) return;
event.preventDefault();
// check if link is inside an svg
// in this case, both href and target are always inside an object
const svg = typeof a.href === 'object' && a.href.constructor.name === 'SVGAnimatedString';