Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions resources.whatwg.org/commit-snapshot-shortcut-key.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Usage: assuming you have commit snapshots set up and building for your spec, include a link like
// `<a href="https://{my-spec}.spec.whatwg.org/commit-snapshots/{commit-sha}" id="commit-snapshot-link">Snapshot as of this commit</a>`.
// `<a href="https://{my-spec}.spec.whatwg.org/commit-snapshots/{commit-sha}" id="commit-snapshot-link" title="You can also press the 'y' key">Snapshot as of this commit</a>`.
//
// Then include this script with
// `<script src="https://resources.whatwg.org/commit-snapshot-shortcut-key.js" defer></script>`.
Expand All @@ -12,7 +12,6 @@
var snapshotLink = document.querySelector('a#commit-snapshot-link');
var snapshotUrl = snapshotLink.href;

snapshotLink.title = 'You can also press the \'y\' key';
window.addEventListener('keydown', function (e) {
if (e.keyCode === keyCode) {
location.href = snapshotUrl + location.hash;
Expand Down
Loading