optimize source changes
This commit is contained in:
committed by
Eric Bailey
parent
69b814d235
commit
2d80d42855
@@ -207,6 +207,14 @@ function YoloFeed() {
|
|||||||
}
|
}
|
||||||
nextPlayer.pause()
|
nextPlayer.pause()
|
||||||
|
|
||||||
|
// use old array if no changes
|
||||||
|
if (
|
||||||
|
oldSources[0] === currentSources[0] &&
|
||||||
|
oldSources[1] === currentSources[1] &&
|
||||||
|
oldSources[2] === currentSources[2]
|
||||||
|
) {
|
||||||
|
return oldSources
|
||||||
|
}
|
||||||
return currentSources
|
return currentSources
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user