This commit is contained in:
Taso committed 2021-04-18 15:38:50 -04:00
1 parent 949ea4ba4b
commit e01fa0ab0a
16 files changed
+406 -231

No files matched your search

@@ -0,0 +1,15 @@
export const getPlayerGameLicense = (src: number): null | string => {
// Parse specifically for license identifier as its
// guaranteed
const playerIdentifiers = getPlayerIdentifiers(src.toString());
let playerIdentifier;
for (const identifier of playerIdentifiers) {
if (identifier.includes('license:')) {
playerIdentifier = identifier.split(':')[1];
}
}
if (!playerIdentifier) return null;
return playerIdentifier;
};