Skip to content

Instantly share code, notes, and snippets.

@simevidas
Created July 9, 2022 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simevidas/6f968c011e522e1e71edb0eaa2b1e09d to your computer and use it in GitHub Desktop.
Save simevidas/6f968c011e522e1e71edb0eaa2b1e09d to your computer and use it in GitHub Desktop.
vQa = function(a) {
var b = a.U,
c = document,
d = c.requestStorageAccess && c.hasStorageAccess;
b.K("embeds_enable_request_storage_access_safari_itp") && g.Lu && d && b.j ? Mt() || b.Ua ? (g.yu("embedsStorageAccessNotChecked", {
isIosWebview: Mt(),
isPemPlayer: b.Ua
}), a.Sz = !1) : c.hasStorageAccess().then(function(e) {
g.yu("embedsHasStorageAccessResult", {
hasCookieAccess: e,
resultedInError: !1
});
a.Sz = !e
}, function(e) {
g.yu("embedsHasStorageAccessResult", {
hasCookieAccess: !1,
resultedInError: !0
});
g.Xx(Error("Embeds ITP Error: " + e));
a.Sz = !1
}) : a.Sz = !1
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment