mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 13:55:21 +00:00
doh
This commit is contained in:
@@ -103,8 +103,6 @@ const app = {
|
|||||||
const a = findAnchor(event.target);
|
const a = findAnchor(event.target);
|
||||||
if (!a) return;
|
if (!a) return;
|
||||||
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
// check if link is inside an svg
|
// check if link is inside an svg
|
||||||
// in this case, both href and target are always inside an object
|
// in this case, both href and target are always inside an object
|
||||||
const svg = typeof a.href === 'object' && a.href.constructor.name === 'SVGAnimatedString';
|
const svg = typeof a.href === 'object' && a.href.constructor.name === 'SVGAnimatedString';
|
||||||
|
|||||||
Reference in New Issue
Block a user