aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/js/demo.js
diff options
context:
space:
mode:
Diffstat (limited to 'demo/src/js/demo.js')
-rw-r--r--demo/src/js/demo.js6
1 files changed, 4 insertions, 2 deletions
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