var myPhotoBrowserDark = app.photoBrowser.create({
photos,
theme: 'dark',
});
$$('.pb').on('click', function () {
var photoIndex = $$(this).attr("data-index");
myPhotoBrowserDark.open(photoIndex);
});
myPhotoBrowserDark.params.photos.push(imgUrl);
V 5.2.0