From 46e63b5faa338fea4784333e6252763eedd4f1dd Mon Sep 17 00:00:00 2001 From: f0x Date: Wed, 10 May 2023 20:18:51 +0200 Subject: [PATCH] bundle plyr icon svg --- web/assets/LICENSE | 2 ++ web/assets/plyr.svg | 1 + web/source/frontend/index.js | 1 + 3 files changed, 4 insertions(+) create mode 100644 web/assets/plyr.svg diff --git a/web/assets/LICENSE b/web/assets/LICENSE index 3baa86545..58141d59b 100644 --- a/web/assets/LICENSE +++ b/web/assets/LICENSE @@ -5,3 +5,5 @@ The following files and subdirectories in this directory are licensed under the - ./default_avatars/* (all default avatars) To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. + +The plyr.svg file is MIT licensed, and can be found at https://github.com/sampotts/plyr \ No newline at end of file diff --git a/web/assets/plyr.svg b/web/assets/plyr.svg new file mode 100644 index 000000000..62ab2579b --- /dev/null +++ b/web/assets/plyr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/source/frontend/index.js b/web/source/frontend/index.js index 2e775a576..99bfc603c 100644 --- a/web/source/frontend/index.js +++ b/web/source/frontend/index.js @@ -119,6 +119,7 @@ Array.from(document.getElementsByClassName("plyr-video")).forEach((video) => { disableContextMenu: false, hideControls: false, tooltips: { contrors: true, seek: true }, + iconUrl: "/assets/plyr.svg", listeners: { fullscreen: () => { lightbox.loadAndOpen(parseInt(video.dataset.pswpIndex), {