Skip to content

Commit

Permalink
fix(core): 🐛 fix xlink:href with SVG
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
thierrymichel committed Jan 28, 2019
1 parent 8da933e commit 19ecd81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// TODO: handle SVG or other special cases.

export const getHref = el => el.href;
export const getHref = el =>
el.getAttribute && el.getAttribute('href') ? el.href : undefined;
export const getUrl = () => window.location.href;
// TODO: check
// https://github.com/luruke/barba.js/pull/323
Expand Down

0 comments on commit 19ecd81

Please sign in to comment.