Skip to content

Commit

Permalink
fix(player): fix attach using parentId
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonatangcavalcanti committed Jan 11, 2023
1 parent be25c33 commit 843f7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/player/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default class Player extends BaseObject {
* @returns {Object} the parent element
*/
_getParentElement({ parentId, parent }) {
if (parentId) return document.querySelector(parent)
if (parentId) return document.querySelector(parentId)
return parent
}

Expand Down

0 comments on commit 843f7af

Please sign in to comment.