fix: add the pjax object as a property of the window object
This commit is contained in:
parent
d2e56096b7
commit
53b2877791
|
@ -1,7 +1,7 @@
|
||||||
<%- __js('js/libs/pjax.min.js') %>
|
<%- __js('js/libs/pjax.min.js') %>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
const pjax = new Pjax({
|
window.pjax = new Pjax({
|
||||||
selectors: [
|
selectors: [
|
||||||
'head title',
|
'head title',
|
||||||
'.page-container',
|
'.page-container',
|
||||||
|
|
Loading…
Reference in New Issue