Skip to content

Commit 7945e55

Browse files
support all image type (png, jpg, gif...)
1 parent 50edaaf commit 7945e55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

particles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ function launchParticlesJS(tag_id, params){
356356

357357
}
358358

359-
// PNG
359+
// PNG, JPG, GIF...
360360

361-
else if(img_type == 'png'){
361+
else{
362362
var img = new Image();
363363
img.onload = function(){
364364
t.img.obj = img;

0 commit comments

Comments
 (0)