Choosing a selection results in a full page refresh.
Opens in a new window.
document.addEventListener("DOMContentLoaded", function () {
setTimeout(() => {
var aiImageURL = sessionStorage.getItem("aiImageURL");
if (aiImageURL) {
var inputField = document.getElementById("aiImageOrderField");
if (inputField) {
inputField.value = aiImageURL;
console.log("✅ AI Image URL Injected:", aiImageURL);
} else {
console.error("❌ AI Image URL Field Not Found.");
}
} else {
console.warn("⚠️ No AI Image URL Found in sessionStorage.");
}
}, 2000); // Delays execution to allow full page load
});