Skip to content

Commit dca6ef3

Browse files
committed
Use jsDelivr for yt-player
1 parent d4524a0 commit dca6ef3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

static/assets/js/player-modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import YTPlayer from 'https://cdn.skypack.dev/pin/yt-player@v3.5.0-XrrFLAqWZVLSo66cMa8t/mode=imports,min/optimized/yt-player.js'
1+
import ytPlayer from 'https://cdn.jsdelivr.net/npm/yt-player@3.6.1/+esm'
22

33
window.plyrmdl = window.plyrmdl || {}
44

@@ -8,7 +8,7 @@ $('.plyrmdl-thumb.plyrmdl-yt').mousedown(event => {
88
// console.log("click: " + youtubeId)
99
window.plyrmdl[youtubeId] = window.plyrmdl[youtubeId] || {}
1010

11-
if (!window.plyrmdl[youtubeId].player) window.plyrmdl[youtubeId].player = new YTPlayer(`.plyrmdl-modal[data-youtube-id="${youtubeId}"] .yt-iframe`, {
11+
if (!window.plyrmdl[youtubeId].player) window.plyrmdl[youtubeId].player = new ytPlayer(`.plyrmdl-modal[data-youtube-id="${youtubeId}"] .yt-iframe`, {
1212
width: "1280",
1313
height: "720",
1414
related: 0,

0 commit comments

Comments
 (0)