Skip to content

Commit

Permalink
style: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed Jun 15, 2024
1 parent 74184db commit e8f3d2f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/YoutubeIframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ import {
DEFAULT_BASE_URL,
CUSTOM_USER_AGENT,
} from './constants';
import {
playMode,
soundMode,
MAIN_SCRIPT,
PLAYER_FUNCTIONS,
} from './PlayerScripts';
import {MAIN_SCRIPT, PLAYER_FUNCTIONS} from './PlayerScripts';
import {deepComparePlayList} from './utils';

const YoutubeIframe = (props, ref) => {
Expand Down Expand Up @@ -125,7 +120,7 @@ const YoutubeIframe = (props, ref) => {
}

webViewRef.current.postMessage(play ? 'playVideo' : 'pauseVideo');
}, [play]);
}, [play, playerReady]);

useEffect(() => {
if (!playerReady) {
Expand All @@ -134,7 +129,7 @@ const YoutubeIframe = (props, ref) => {
}

webViewRef.current.postMessage(mute ? 'muteVideo' : 'unMuteVideo');
}, [mute]);
}, [mute, playerReady]);

useEffect(() => {
if (!playerReady) {
Expand Down

0 comments on commit e8f3d2f

Please sign in to comment.