Skip to content

Commit 07f2786

Browse files
authored
Expose setAspect function globally
Expose setAspect function to global scope for inline usage.
1 parent 74a3088 commit 07f2786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

steps/edit.js

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

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

0 commit comments

Comments
 (0)