mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
expand-video.js: avoid double-initialize
This commit is contained in:
parent
4cef33d401
commit
77433fd77b
@ -6,6 +6,9 @@ if (typeof _ == 'undefined') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setupVideo(thumb, url) {
|
function setupVideo(thumb, url) {
|
||||||
|
if (thumb.videoAlreadySetUp) return;
|
||||||
|
thumb.videoAlreadySetUp = true;
|
||||||
|
|
||||||
var video = null;
|
var video = null;
|
||||||
var videoContainer, videoHide;
|
var videoContainer, videoHide;
|
||||||
var expanded = false;
|
var expanded = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user