Skip to content

Commit

Permalink
### [2.1.6]
Browse files Browse the repository at this point in the history
- Update: use /youtube-nocookie.com/embed/ for all YouTube videos
  • Loading branch information
nicolafranchini committed Jan 24, 2024
1 parent d739342 commit adc7018
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### [2.1.6]
- Update: use /youtube-nocookie.com/embed/ for all YouTube videos

### [2.1.5]
- Update: return false after function execution for `onPostOpen` and `onPreClose` #190

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nicolafranchini/venobox",
"description": "Responsive JavaScript modal window plugin, touch swipe gallery",
"version": "2.1.5",
"version": "2.1.6",
"keywords": [
"lightbox",
"modal",
Expand Down
4 changes: 2 additions & 2 deletions dist/venobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}(this, (function () { 'use strict';

/**
* VenoBox 2.1.5
* VenoBox 2.1.6
* Copyright 2013-2024 Nicola Franchini
* @license: https://github.com/nicolafranchini/VenoBox/blob/master/LICENSE
*/
Expand Down Expand Up @@ -416,7 +416,7 @@
if (videoObj.type == 'vimeo') {
player = 'https://player.vimeo.com/video/';
} else if (videoObj.type == 'youtube') {
player = 'https://www.youtube.com/embed/';
player = 'https://www.youtube-nocookie.com/embed/';
}
newcontent = '<div class="venoratio venoratio-' + ratio + '"><iframe webkitallowfullscreen mozallowfullscreen allowfullscreen allow="autoplay" frameborder="0" src="'+player+videoObj.id+queryvars+'"></iframe></div>';
} else {
Expand Down
4 changes: 2 additions & 2 deletions dist/venobox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/venobox.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "venobox",
"version": "2.1.5",
"version": "2.1.6",
"description": "Responsive javascript modal window plugin, touch swipe gallery",
"main": "dist/venobox.min.js",
"module": "src/venobox.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions src/venobox.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* VenoBox 2.1.5
* VenoBox 2.1.6
* Copyright 2013-2024 Nicola Franchini
* @license: https://github.com/nicolafranchini/VenoBox/blob/master/LICENSE
*/
Expand Down Expand Up @@ -410,7 +410,7 @@ function loadVid(dest, ratio, autoplay){
if (videoObj.type == 'vimeo') {
player = 'https://player.vimeo.com/video/';
} else if (videoObj.type == 'youtube') {
player = 'https://www.youtube.com/embed/';
player = 'https://www.youtube-nocookie.com/embed/';
}
newcontent = '<div class="venoratio venoratio-' + ratio + '"><iframe webkitallowfullscreen mozallowfullscreen allowfullscreen allow="autoplay" frameborder="0" src="'+player+videoObj.id+queryvars+'"></iframe></div>';
} else {
Expand Down

0 comments on commit adc7018

Please sign in to comment.