From 80f77b58af722708437547397d54a547f989d624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 16 Jan 2021 12:36:44 -0500 Subject: [PATCH] Update client.js --- lib/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client.js b/lib/client.js index 9d90ccd..94f5932 100644 --- a/lib/client.js +++ b/lib/client.js @@ -6,12 +6,12 @@ You can listen for page changes by writing something like this: - $(window).on('action:ajaxify.end', function(data) { - var url = data.url; + $(window).on('action:ajaxify.end', function(ev, data) { + var url = data.url; console.log('I am now at: ' + url); }); */ $(document).ready(function() { // Your code goes here -}); \ No newline at end of file +});