Pure JS PhotoBroswer not working

photos['url']='https://sff.team/img/documents/Images/BusinessPlanLoyaltyModicare_Page_1.jpg';

console.log(Array.isArray(photos)); // true
var ThisPhotoBrowser = app.photoBrowser.create({
								photos,
								theme: 'dark',
								type: 'standalone'
							});	
					
ThisPhotoBrowser.open();

can you explain what is not working? any error in the console? did you use f7-core?

It shows a blank screen.


If I use.
var ThisPhotoBrowser = app.photoBrowser.create({
//photos,
photos:[‘https://sff.team/img/documents/Images/BusinessPlanLoyaltyModicare_Page_1.jpg’,'https://sff.team/img/documents/Images/BusinessPlanLoyaltyModicare_Page_1.jpg’],
theme: ‘dark’,
type: ‘standalone’
});

ThisPhotoBrowser.open();

It will show me the images.


But, if I use

photos[‘url’]=‘https://sff.team/img/documents/Images/BusinessPlanLoyaltyModicare_Page_1.jpg’;
var ThisPhotoBrowser = app.photoBrowser.create({
photos,
//photos:[‘https://sff.team/img/documents/Images/BusinessPlanLoyaltyModicare_Page_1.jpg’,'https://sff.team/img/documents/Images/BusinessPlanLoyaltyModicare_Page_1.jpg’],
theme: ‘dark’,
type: ‘standalone’
});

ThisPhotoBrowser.open();

It shows a blank screen without images loading.

I use F7-Core bundle.min.js

I was able to make the PhotoBrowser work… The trick was JSON.parse created not an object,
Thanks