Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya authored Sep 9, 2024
1 parent 968fac0 commit 0d87e59
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/docs/src/pages/docs/ui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ OUI({
src: 'your-subtitle-file-path',
default: localStorage.getItem('pre-subtitle') == 'your-subtitle-file-path'
}
]
],
offset: 0, // delay any seconds
onChange(source) {
// persistedstate
localStorage.setItem('pre-subtitle', source.src)
}
},
offset: 2, // delay any second
onChange(source) {
// persistedstate
localStorage.setItem('pre-subtitle', source.src)
}
})
```

Expand All @@ -84,7 +84,7 @@ const player = Player.make('#player', {
// ...
}
})
.use([OUI({ theme: { controller: { header: true } } })])
.use([OUI({ theme: { controller: { header: true /* required */ } } })])
.create()
```

Expand Down

0 comments on commit 0d87e59

Please sign in to comment.