Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
receiver: ensure all parts of OSD are displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Aug 6, 2015
1 parent 35021dc commit d710813
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/scripts/receiver/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = (function(window, undefined) {

return {
hide: function() {
document.querySelector('.osd')
.classList.remove('show');
Array.prototype.forEach.call(
document.querySelectorAll('.osd'),
function(osd) { osd.classList.remove('show'); });
},
show: function(text) {
document.querySelector('.osd.technical').innerHTML = (
Expand All @@ -22,7 +23,9 @@ module.exports = (function(window, undefined) {
'</p>'
);
document.querySelector('.osd.text').textContent = text;
document.querySelector('.osd').classList.add('show');
Array.prototype.forEach.call(
document.querySelectorAll('.osd'),
function(osd) { osd.classList.add('show'); });
}
};

Expand Down

0 comments on commit d710813

Please sign in to comment.