browser to server logging

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-11-23 10:47:06 -05:00
parent 6bd25a6f90
commit 8a1eaedc82
14 changed files with 120 additions and 86 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ function clip_gallery_urls(gallery) {
const files = gallery.map((v) => v.data);
navigator.clipboard.writeText(JSON.stringify(files)).then(
() => log('clipboard:', files),
(err) => console.error('clipboard:', files, err),
(err) => error(`clipboard: ${files} ${err}`),
);
}
@@ -493,9 +493,9 @@ function previewTheme() {
el.src = `/file=html/${name}.jpg`;
}
})
.catch((e) => console.error('previewTheme:', e));
.catch((e) => error(`previewTheme: ${e}`));
})
.catch((e) => console.error('previewTheme:', e));
.catch((e) => error(`previewTheme: ${e}`));
}
async function browseFolder() {