Skip to content

Commit

Permalink
change default animationSelector and LINK_SELECTOR options
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrchk committed Sep 23, 2018
1 parent c702edd commit de052e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/swup.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ var Swup = function () {
// default options
var defaults = {
cache: true,
animationSelector: '[class^="a-"]',
animationSelector: '[class*="transition-"]',
elements: ['#swup'],
pageClassPrefix: '',
debugMode: false,
Expand All @@ -300,7 +300,7 @@ var Swup = function () {
return true;
},

LINK_SELECTOR: 'a[href^="/"]:not([data-no-swup]), a[href^="#"]:not([data-no-swup]), a[xlink\\:href]',
LINK_SELECTOR: 'a[href^="' + window.location.origin + '"]:not([data-no-swup]), a[href^="/"]:not([data-no-swup]), a[href^="#"]:not([data-no-swup])',
FORM_SELECTOR: 'form[data-swup-form]'

/**
Expand Down
Loading

0 comments on commit de052e4

Please sign in to comment.