mirror of
https://github.com/cupcakearmy/liquet.git
synced 2025-09-06 07:50:41 +00:00
swup ignore anchor links
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import Swup from 'swup'
|
||||
import SwupPreloadPlugin from '@swup/preload-plugin';
|
||||
import SwupPreloadPlugin from '@swup/preload-plugin'
|
||||
|
||||
export default (fn) => {
|
||||
const swup = new Swup({
|
||||
linkSelector: `a[href^="${window.location.origin}"]:not([data-no-swup]), a[href^="/"]:not([data-no-swup])`,
|
||||
plugins: [new SwupPreloadPlugin()],
|
||||
containers: ['#app']
|
||||
})
|
||||
|
Reference in New Issue
Block a user