Embed: fix javascript error for audio players on touch devices

This commit is contained in:
Cat 2021-12-09 15:57:30 +01:00 committed by Thulinma
parent 615fad6be9
commit 15ff0dcb9f
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -633,7 +633,7 @@ MistSkins["default"] = {
MistUtil.class.add(this.container,"hasControls");
var container = this.UI.buildStructure(this.skin.structure.controls);
if (MistUtil.isTouchDevice() && (this.size.width > 300)) {
if (MistUtil.isTouchDevice() && this.size && (this.size.width > 300)) {
container.style.zoom = 1.5;
}
return container;