Skip to content

Commit

Permalink
fix: Push a correct synced stream meta to webview (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
floydya authored Jul 17, 2024
1 parent 4680bc8 commit 799697e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/client/webview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export function useWebview(path = 'http://assets/webview/index.html') {
}

function onSyncedMetaChange(object: alt.Object, key: string, newValue: any) {
if (native.isEntityAPed(object.scriptID)) {
if (native.isEntityAPed(object.scriptID) && object.scriptID === alt.Player.local.scriptID) {
webview.emit(Events.view.syncPartialCharacter, key, newValue);
return;
}
Expand Down

0 comments on commit 799697e

Please sign in to comment.