Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Update + Minor Tweaks #621

Merged
merged 13 commits into from
Sep 5, 2023
4 changes: 2 additions & 2 deletions create.html
Original file line number Diff line number Diff line change
Expand Up @@ -1709,8 +1709,8 @@ <h4 class="modal-body text-danger" :style="{display: !getID() ? 'block' : 'none'
document.getElementById('preview').contentWindow.addEventListener("error", function(event) {
var error = event.error
if (error.type == "ImageLoadError") {
if (error.url === "") {
var emptyURLTypes = ["setBackdropURL('')", 'setBackdropURL("")', 'url: ""', "url: ''"]
if (error.url === "" || error.url === undefined || error.url === "undefined") {
var emptyURLTypes = ["setBackdropURL('')", 'setBackdropURL("")', 'setBackdropURL()', 'url: ""', "url: ''"]
var emptyURLType = emptyURLTypes.find(t => code.includes(t))
if (emptyURLType) {
app.error = {message: "You forgot to include an image or background URL.", lineno: code.substring(0, code.indexOf(emptyURLType)).split('\n').length}
Expand Down