Avoid throwing error on null integrity
The integrity checks are currently tentative and the throw is causing loading errors
This commit is contained in:
@@ -663,8 +663,8 @@ twitch-videoad.js text/javascript
|
|||||||
}
|
}
|
||||||
function gqlRequest(body, realFetch) {
|
function gqlRequest(body, realFetch) {
|
||||||
if (ClientIntegrityHeader == null) {
|
if (ClientIntegrityHeader == null) {
|
||||||
console.error('ClientIntegrityHeader is null');
|
console.warn('ClientIntegrityHeader is null');
|
||||||
throw 'ClientIntegrityHeader is null';
|
//throw 'ClientIntegrityHeader is null';
|
||||||
}
|
}
|
||||||
var fetchFunc = realFetch ? realFetch : fetch;
|
var fetchFunc = realFetch ? realFetch : fetch;
|
||||||
if (!GQLDeviceID) {
|
if (!GQLDeviceID) {
|
||||||
|
|||||||
+2
-2
@@ -674,8 +674,8 @@
|
|||||||
}
|
}
|
||||||
function gqlRequest(body, realFetch) {
|
function gqlRequest(body, realFetch) {
|
||||||
if (ClientIntegrityHeader == null) {
|
if (ClientIntegrityHeader == null) {
|
||||||
console.error('ClientIntegrityHeader is null');
|
console.warn('ClientIntegrityHeader is null');
|
||||||
throw 'ClientIntegrityHeader is null';
|
//throw 'ClientIntegrityHeader is null';
|
||||||
}
|
}
|
||||||
var fetchFunc = realFetch ? realFetch : fetch;
|
var fetchFunc = realFetch ? realFetch : fetch;
|
||||||
if (!GQLDeviceID) {
|
if (!GQLDeviceID) {
|
||||||
|
|||||||
@@ -314,8 +314,8 @@ twitch-videoad.js text/javascript
|
|||||||
}
|
}
|
||||||
function gqlRequest(body, realFetch) {
|
function gqlRequest(body, realFetch) {
|
||||||
if (ClientIntegrityHeader == null) {
|
if (ClientIntegrityHeader == null) {
|
||||||
console.error('ClientIntegrityHeader is null');
|
console.warn('ClientIntegrityHeader is null');
|
||||||
throw 'ClientIntegrityHeader is null';
|
//throw 'ClientIntegrityHeader is null';
|
||||||
}
|
}
|
||||||
var fetchFunc = realFetch ? realFetch : fetch;
|
var fetchFunc = realFetch ? realFetch : fetch;
|
||||||
return fetchFunc('https://gql.twitch.tv/gql', {
|
return fetchFunc('https://gql.twitch.tv/gql', {
|
||||||
|
|||||||
@@ -325,8 +325,8 @@
|
|||||||
}
|
}
|
||||||
function gqlRequest(body, realFetch) {
|
function gqlRequest(body, realFetch) {
|
||||||
if (ClientIntegrityHeader == null) {
|
if (ClientIntegrityHeader == null) {
|
||||||
console.error('ClientIntegrityHeader is null');
|
console.warn('ClientIntegrityHeader is null');
|
||||||
throw 'ClientIntegrityHeader is null';
|
//throw 'ClientIntegrityHeader is null';
|
||||||
}
|
}
|
||||||
var fetchFunc = realFetch ? realFetch : fetch;
|
var fetchFunc = realFetch ? realFetch : fetch;
|
||||||
return fetchFunc('https://gql.twitch.tv/gql', {
|
return fetchFunc('https://gql.twitch.tv/gql', {
|
||||||
|
|||||||
Reference in New Issue
Block a user