Skip to content
New issue

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

0.6.1 Not Working. Uncaught Type Error. #52

Open
SabreRunner opened this issue Dec 7, 2022 · 4 comments
Open

0.6.1 Not Working. Uncaught Type Error. #52

SabreRunner opened this issue Dec 7, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@SabreRunner
Copy link

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)

@besuper
Copy link
Owner

besuper commented Jan 6, 2023

Is the issue still there after reinstalling the extension?

@besuper besuper added the bug Something isn't working label Jan 6, 2023
@reisei1
Copy link

reisei1 commented Jan 13, 2023

0.6.2 also not working on Firefox. streams and clips won't play

@Endymi0n74
Copy link

worked before, still working now on firefox 110.0a1 nightly without error

@Rex000
Copy link

Rex000 commented Jan 18, 2023

0.6.2 also not working on Firefox. streams and clips won't play

Yeah not working for me too unless I refresh, sometimes more than once. Seems it started after the recent firefox update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants