Apply style once an skin is loaded
This commit is contained in:
parent
dd96102ec3
commit
3250100fad
2 changed files with 2 additions and 1 deletions
|
@ -137,6 +137,7 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
|
|||
|
||||
function onViewBeforeShow(e) {
|
||||
if (e.detail && e.detail.type === 'video-osd') {
|
||||
document.getElementsByTagName('body')[0].style = null;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -155,6 +156,7 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
|
|||
}
|
||||
}
|
||||
}
|
||||
document.getElementsByTagName('body')[0].style = 'overflow-y: scroll';
|
||||
}
|
||||
|
||||
document.addEventListener('viewshow', onViewBeforeShow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue