found bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-03 18:09:56 +03:00
parent 277a78dc4f
commit 375d80d719

View File

@ -599,6 +599,8 @@ var Gallery = {
// | [ <url>, <caption>, .. ]
// | { url: <url>, caption: <caption>, .. }
//
// XXX BUG: for some reason this breaks the gallery:
// gallery.load(gallery.json('marked'))
// XXX do we handle previews here???
load: function(images, index=undefined){
images = images instanceof Array ?