INNER CODE UNIT · JavaScript
setPreprocessedPlayer
MorpheApp/morphe-patches · patches/src/main/resources/spoof/raw/yt.solver.wrapper.js:44
function setPreprocessedPlayer(preprocessedPlayer, playerHash) {
if (_playerCache.playerHash !== playerHash) {
_playerCache.playerHash = playerHash;
_playerCache.preprocessedPlayer = preprocessedPlayer;
_playerCache.isPreprocessed = true;
}
}
/**
* Clear the player cache. Call this when switching players or cleaning up.
*/
function clearPlayerCache() {
_playerCache.playerHash = null;
_playerCache.preprocessedPlayer = null;
_playerCache.isPreprocessed = false;
}
/**