Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions ui/src/components/QMediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,14 +857,19 @@ export default defineComponent({
}

async function __setupIcons () {
const iconSetName = $q.iconSet.name || 'material-icons'
let icnSet
try {
icnSet = await __loadIconSet(iconSetName)
}
catch (e) {
let icnSet;

if (typeof $q.iconSet.mediaPlayer === 'object') {
icnSet = $q.iconSet;
} else {
const iconSetName = $q.iconSet.name || 'material-icons';

try {
icnSet = await __loadIconSet(iconSetName);
} catch (e) {
}
}
icnSet !== void 0 && icnSet.name !== void 0 && (iconSet.mediaPlayer = { ...icnSet.mediaPlayer })
icnSet !== void 0 && icnSet.name !== void 0 && (iconSet.mediaPlayer = { ...icnSet.mediaPlayer });
}

async function __loadIconSet (set) {
Expand Down