mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix broken twitch.tv functionality (#3858)
* Fix broken twitch.tv functionality Fixes some features of twitch.tv which are broken due to device id change on every gql request. Related issues: - https://github.com/pixeltris/TwitchAdSolutions/issues/50 - https://github.com/pixeltris/TwitchAdSolutions/issues/45 * Use strict equality
This commit is contained in:
parent
c0b399a3be
commit
cc0008df57
1 changed files with 3 additions and 1 deletions
|
@ -1571,7 +1571,9 @@
|
|||
typeof url === 'string' &&
|
||||
url.includes('gql') &&
|
||||
init instanceof Object &&
|
||||
init.headers instanceof Object
|
||||
init.headers instanceof Object &&
|
||||
typeof init.body === 'string' &&
|
||||
init.body.includes('PlaybackAccessToken')
|
||||
) {
|
||||
const { headers } = init;
|
||||
if ( typeof headers['X-Device-Id'] === 'string' ) {
|
||||
|
|
Loading…
Reference in a new issue