Skip to content

Nav if already at location #136

@finppp

Description

@finppp

It would be great to have a hook for if the target location is 'already' active eg

  .on(
    '/my-posts',
      function () {
          navHome()
          scrollTop()
    },
    already: function () {
      scrollTop()
    }
  })

As currently this will not call the .on function if you are already at /my-posts. Alternatively it would be great to have a function to enable re-triggering of the .on function

Thanks for all your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions