Skip to content

Commit

Permalink
Release 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Jun 24, 2020
1 parent 5593db6 commit fcd958a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dist/BigPicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ var BigPicture = (function () {
} else if (options.vidSrc) {
// if direct video link
toggleLoadingIcon(true);
if (options.dimensions) {
changeCSS(displayVideo, ("width:" + (options.dimensions[0]) + "px"));
}
makeVidSrc(options.vidSrc);
checkMedia('video');
} else {
Expand Down
2 changes: 1 addition & 1 deletion dist/BigPicture.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ function BigPicture (options) {
} else if (options.vidSrc) {
// if direct video link
toggleLoadingIcon(true);
if (options.dimensions) {
changeCSS(displayVideo, ("width:" + (options.dimensions[0]) + "px"));
}
makeVidSrc(options.vidSrc);
checkMedia('video');
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bigpicture",
"version": "2.5.0",
"version": "2.5.1",
"description": "Lightweight image and video viewer, supports youtube / vimeo",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fcd958a

Please sign in to comment.