Comply with LibreJs (#165)

https://www.gnu.org/software/librejs/
This commit is contained in:
bopol 2020-05-23 20:49:48 +00:00 committed by GitHub
parent 62f8edf027
commit 52983e5813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,4 @@
// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
function playVideo(overlay) { function playVideo(overlay) {
const video = overlay.parentElement.querySelector('video'); const video = overlay.parentElement.querySelector('video');
const url = video.getAttribute("data-url"); const url = video.getAttribute("data-url");
@ -20,3 +21,4 @@ function playVideo(overlay) {
}); });
} }
} }
// @license-end

View file

@ -1,3 +1,4 @@
// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
function insertBeforeLast(node, elem) { function insertBeforeLast(node, elem) {
node.insertBefore(elem, node.childNodes[node.childNodes.length - 2]); node.insertBefore(elem, node.childNodes[node.childNodes.length - 2]);
} }
@ -61,3 +62,4 @@ window.onload = function() {
} }
}); });
}; };
// @license-end