mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 11:51:47 +00:00
revert to original lint format
This commit is contained in:
@ -11,7 +11,7 @@ const clientId = "790655993809338398";
|
|||||||
|
|
||||||
let clearActivity;
|
let clearActivity;
|
||||||
|
|
||||||
module.exports = (win, { activityTimoutEnabled, activityTimoutTime }) => {
|
module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {
|
||||||
const registerCallback = getSongInfo(win);
|
const registerCallback = getSongInfo(win);
|
||||||
|
|
||||||
// If the page is ready, register the callback
|
// If the page is ready, register the callback
|
||||||
@ -39,8 +39,7 @@ module.exports = (win, { activityTimoutEnabled, activityTimoutTime }) => {
|
|||||||
activityInfo.smallImageText = "idle/paused";
|
activityInfo.smallImageText = "idle/paused";
|
||||||
// Set start the timer so the activity gets cleared after a while if enabled
|
// Set start the timer so the activity gets cleared after a while if enabled
|
||||||
if (activityTimoutEnabled)
|
if (activityTimoutEnabled)
|
||||||
clearActivity = setTimeout(() => rpc.clearActivity(), activityTimoutTime || 10, 000);
|
clearActivity = setTimeout(()=>rpc.clearActivity(), activityTimoutTime||10000);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// stop the clear activity timout
|
// stop the clear activity timout
|
||||||
clearTimeout(clearActivity);
|
clearTimeout(clearActivity);
|
||||||
|
|||||||
Reference in New Issue
Block a user