mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
This commit is contained in:
parent
37327259cb
commit
167a9dcaf3
1 changed files with 6 additions and 1 deletions
|
@ -957,7 +957,12 @@ export default function Share(props: {
|
|||
|
||||
onMount(() => {
|
||||
const hash = window.location.hash.slice(1)
|
||||
if (hash !== "" && hash === anchor()) {
|
||||
// Wait till all parts are loaded
|
||||
if (
|
||||
hash !== ""
|
||||
&& msg.parts.length === partIndex() + 1
|
||||
&& data().messages.length === msgIndex() + 1
|
||||
) {
|
||||
scrollToAnchor(hash)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue