Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store cuePoints across page loads #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Store cuePoints across page loads #100

wants to merge 1 commit into from

Conversation

sigvef
Copy link
Member

@sigvef sigvef commented Jul 1, 2023

Store cuePoints across page loads

This way, you don't need to set your cue points again and again.

This way, you don't need to set your cue points again and again.
@stianjensen stianjensen self-assigned this Jul 3, 2023
'renin:stored',
JSON.stringify({
frame: this.frame,
cuePoints: this.cuePoints.length > 0 ? this.cuePoints : null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR only stores cuePoints, but doesn't read them?

@@ -638,6 +643,13 @@ export class Renin {
if (this.options.productionMode) {
return false;
}
localStorage.setItem(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How often is this function called – will this localStorage add a noticeable penalty on the update loop in dev mode? 🤔

@iver56
Copy link
Member

iver56 commented Jul 13, 2023

I'd love to get this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants