Skip to content

Commit 5cddefb

Browse files
committed
Comments for index.js
1 parent 5b4e1ad commit 5cddefb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function getRouteURL(node) {
3131
window.addEventListener('message', ({ data: { action, payload } }) => {
3232
switch (action) {
3333
case 'jumpToSnap':
34-
timeJump(payload);
34+
timeJump(payload); // * This sets state with given payload
3535
// Get the pathname from payload and add new entry to browser history
3636
// MORE: https://developer.mozilla.org/en-US/docs/Web/API/History/pushState
3737
window.history.pushState('', '', getRouteURL(payload));

0 commit comments

Comments
 (0)