mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-21 19:41:23 +01:00
fix: don't export empty texture
This commit is contained in:
parent
c38aff758a
commit
377f03daca
1 changed files with 2 additions and 2 deletions
|
|
@ -253,8 +253,8 @@ async function getMapURL(type, options = {}) {
|
|||
{
|
||||
// replace texture href to base64
|
||||
const image = cloneEl.querySelector("#texture > image");
|
||||
if (image) {
|
||||
const href = image.getAttribute("href");
|
||||
const href = image?.getAttribute("href");
|
||||
if (href) {
|
||||
await new Promise(resolve => {
|
||||
getBase64(href, base64 => {
|
||||
image.setAttribute("href", base64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue