Merge pull request #91 from TildenJ/fixPjax

fix: add the pjax object as a property of the window object
This commit is contained in:
指间的诗意 2021-04-26 17:07:09 +08:00 committed by GitHub
commit 5db78b5364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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',