Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as $ from 'jquery'
- $(document).ready(function() {
- $('a[href="'+ location.pathname +'"]').addClass('active');
- console.log(location.pathname)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement