We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4e1ad commit 5cddefbCopy full SHA for 5cddefb
package/index.js
@@ -31,7 +31,7 @@ function getRouteURL(node) {
31
window.addEventListener('message', ({ data: { action, payload } }) => {
32
switch (action) {
33
case 'jumpToSnap':
34
- timeJump(payload);
+ timeJump(payload); // * This sets state with given payload
35
// Get the pathname from payload and add new entry to browser history
36
// MORE: https://developer.mozilla.org/en-US/docs/Web/API/History/pushState
37
window.history.pushState('', '', getRouteURL(payload));
0 commit comments