Skip to content

Commit f94acb6

Browse files
authored
move the code
1 parent 07f2786 commit f94acb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

steps/edit.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export function initStage() {
99

1010
//aspect ratio logic
1111
function setAspect(ratio) {
12-
window.setAspect = setAspect; //so that in-line HTML will still work.
1312
const video = document.getElementById('video-preview');
1413
const image = document.getElementById('image-preview');
1514

@@ -33,6 +32,8 @@ export function initStage() {
3332
});
3433
});
3534

35+
window.setAspect = setAspect; //so that in-line HTML will still work.
36+
3637
// Button listeners (logic to be implemented later)
3738
document.getElementById("split-btn")?.addEventListener("click", () => {
3839
console.warn("Split function not implemented yet.");

0 commit comments

Comments
 (0)