Open creator on page load

This commit is contained in:
Josh birnholz
2023-02-18 17:15:32 -05:00
parent 6ffa7122fe
commit 8d9b549a8d
2 changed files with 7 additions and 2 deletions

View File

@@ -800,7 +800,7 @@ function autoFrame() {
} }
} }
async function autoUBFrame(colors, mana_cost, type_line, power) { async function autoUBFrame(colors, mana_cost, type_line, power) {
var frames = card.frames.filter(frame => frame.name.includes('Extension') || frame.name.includes('Gray Holo Stamp')); var frames = card.frames.filter(frame => frame.name.includes('Extension') || frame.name.includes('Gray Holo Stamp') || frame.name.includes('Gold Holo Stamp'));
//clear the draggable frames //clear the draggable frames
card.frames = []; card.frames = [];

View File

@@ -118,3 +118,8 @@ function bindInputs(query1, query2, checkbox = false) {
e2.oninput = (event) => {e1.value = e2.value;} e2.oninput = (event) => {e1.value = e2.value;}
} }
} }
document.addEventListener('DOMContentLoaded', function() {
document.body.dispatchEvent(new Event('doCreate'));
})