mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
fix(core,producer): render SDK position edits in producer pipeline
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import {
|
||||
EDIT_BASE_X_ATTR,
|
||||
EDIT_BASE_Y_ATTR,
|
||||
applyPositionEdits,
|
||||
installPositionEditsSeekReapply,
|
||||
} from "../src/runtime/positionEdits";
|
||||
|
||||
function start(): void {
|
||||
if (!document.querySelector(`[${EDIT_BASE_X_ATTR}], [${EDIT_BASE_Y_ATTR}]`)) {
|
||||
return;
|
||||
}
|
||||
applyPositionEdits(document);
|
||||
installPositionEditsSeekReapply(window);
|
||||
}
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", start, { once: true });
|
||||
} else {
|
||||
start();
|
||||
}
|
||||
Reference in New Issue
Block a user