We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read properties of undefined (reading 'local')
src/background.js
src/background.js:6 (anonymous function)
`// Make background wake up chrome.webNavigation.onBeforeNavigate.addListener(function () {
}, { url: [{ hostContains: "twitch" }] });
var isChrome = chrome.declarativeNetRequest != undefined;
// Patching amazon service worker (75a2c99f45ecb5aa3225) if (isChrome) { // declarativeNetRequest only available on chrome chrome.declarativeNetRequest.updateDynamicRules({ addRules: [{ 'id': 1001, 'priority': 1, 'action': { 'type': 'redirect', 'redirect': { url: chrome.runtime.getURL("src/patched-amazon.js") } }, 'condition': { 'urlFilter': 'https://static.twitchcdn.net/assets/amazon-ivs-wasmworker.min-.js', } }], removeRuleIds: [1001] }) } else { // Support firefox here browser.webRequest.onBeforeRequest.addListener( function (details) { return { redirectUrl: browser.runtime.getURL("src/patched-amazon.js") }; }, { urls: [ "https://static.twitchcdn.net/assets/amazon-ivs-wasmworker.min-.js" ], types: ["main_frame", "script"] }, ["blocking"] ); }`
Google Chrome Chrome is up to date Version 108.0.5359.95 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Is the issue still there after reinstalling the extension?
Sorry, something went wrong.
0.6.2 also not working on Firefox. streams and clips won't play
worked before, still working now on firefox 110.0a1 nightly without error
Yeah not working for me too unless I refresh, sometimes more than once. Seems it started after the recent firefox update.
No branches or pull requests
Uncaught TypeError: Cannot read properties of undefined (reading 'local')
Context
src/background.js
Stack Trace
src/background.js:6 (anonymous function)
`// Make background wake up
chrome.webNavigation.onBeforeNavigate.addListener(function () {
}, {
url: [{ hostContains: "twitch" }]
});
var isChrome = chrome.declarativeNetRequest != undefined;
// Patching amazon service worker (75a2c99f45ecb5aa3225)
if (isChrome) {
// declarativeNetRequest only available on chrome
chrome.declarativeNetRequest.updateDynamicRules({
addRules: [{
'id': 1001,
'priority': 1,
'action': {
'type': 'redirect',
'redirect': {
url: chrome.runtime.getURL("src/patched-amazon.js")
}
},
'condition': {
'urlFilter': 'https://static.twitchcdn.net/assets/amazon-ivs-wasmworker.min-.js',
}
}],
removeRuleIds: [1001]
})
} else {
// Support firefox here
browser.webRequest.onBeforeRequest.addListener(
function (details) {
return { redirectUrl: browser.runtime.getURL("src/patched-amazon.js") };
},
{
urls: [
"https://static.twitchcdn.net/assets/amazon-ivs-wasmworker.min-.js"
],
types: ["main_frame", "script"]
},
["blocking"]
);
}`
Google Chrome
Chrome is up to date
Version 108.0.5359.95 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: