Skip to content

Commit

Permalink
startup -- HTML Support
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Jan 14, 2025
1 parent e925316 commit 7434f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function showMediaEditor(namespace, fileType) {
<div class="title">Aspect Ratio</div>
<div class="selector-ui">
<select>
${ fileType === "html"? `
${ fileType === "html" ? `
<option value="" selected disabled hidden>Choose Scale</option>
<option value="[150,150]">1:1</option>
<option value="[240,180]">4:3</option>
Expand Down Expand Up @@ -303,6 +303,7 @@ function showMediaEditor(namespace, fileType) {
});
} else if (fileType === "html") {
const iframe = editor.querySelector(`div[class="media-holder"] iframe`);
media.d = media.d.split(",")[1];

editor.querySelector(`div[class="selector-ui"] select`).addEventListener("change", (e) => {
const children = allCheckers[0].children;
Expand Down

0 comments on commit 7434f6f

Please sign in to comment.