INNER CODE UNIT · JavaScript
clearPlayerCache
MorpheApp/morphe-patches · patches/src/main/resources/spoof/raw/yt.solver.wrapper.js:55
function clearPlayerCache() {
_playerCache.playerHash = null;
_playerCache.preprocessedPlayer = null;
_playerCache.isPreprocessed = false;
}
/**
* Get the current player hash, or null if no player is loaded.
*
* @returns {string|null} The current player hash
*/
function getPlayerHash() {
return _playerCache.playerHash;
}
/**
* Check if the player with the given hash is already loaded and preprocessed.
*