From 93f5acbffd32fc016ca0b0b3679ba9184d12009f Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 2 Jun 2019 22:25:00 +1000 Subject: Fixed cite display --- demo/src/js/demo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'demo/src/js/demo.js') diff --git a/demo/src/js/demo.js b/demo/src/js/demo.js index 93ffe172..a0a6ab1a 100644 --- a/demo/src/js/demo.js +++ b/demo/src/js/demo.js @@ -231,9 +231,11 @@ import Plyr from '../../../src/js/plyr'; // Show cite Array.from(document.querySelectorAll('.plyr__cite')).forEach(cite => { - cite.setAttribute('hidden', ''); + // eslint-disable-next-line no-param-reassign + cite.hidden = true; }); - document.querySelector(`.plyr__cite--${type}`).removeAttribute('hidden'); + + document.querySelector(`.plyr__cite--${type}`).hidden = false; } // Bind to each button -- cgit v1.2.3