Skip to content

Commit

Permalink
moviehouse: setPlayer if userId param set
Browse files Browse the repository at this point in the history
  • Loading branch information
nandanrao committed Sep 18, 2022
1 parent 6230a79 commit 9a78ad6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moviehouse/src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ function initMessenger() {
};

document.addEventListener('DOMContentLoaded', () => {
if (!userId) {
if (userId) {
setPlayer(userId)
} else {
window.extAsyncInit = initMessenger
}
});

0 comments on commit 9a78ad6

Please sign in to comment.