Skip to content

Commit

Permalink
Allow hash to match some more ids
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed May 12, 2016
1 parent 77baf6e commit 64eef6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/turbolinks/snapshot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Turbolinks.Snapshot
@getSetting("cache-control")

hasAnchor: (anchor) ->
try @body.querySelector("##{anchor}")?
try @body.querySelector("[id='#{anchor}']")?

isPreviewable: ->
@getCacheControlValue() isnt "no-preview"
Expand Down

0 comments on commit 64eef6a

Please sign in to comment.