Is there an existing issue for this?
Type
User Script
Web Browser
brave
User Script Manager
Violentmonkey 2.31.0
URL
https://www.protectedtext.com/
What happened?
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'clear')
at Container.remove (Magic Userscript+ : Show Site All UserJS.user.js:3251:16)
at Container.timeoutFrame (Magic Userscript+ : Show Site All UserJS.user.js:3475:10)
remove @ Magic Userscript+ : Show Site All UserJS.user.js:3251
timeoutFrame @ Magic Userscript+ : Show Site All UserJS.user.js:3475
await in timeoutFrame
(anonymous) @ Magic Userscript+ : Show Site All UserJS.user.js:5986
document.addEventListener.once @ Magic Userscript+ : Show Site All UserJS.user.js:5958
i have inject on load and fetch on load set to false. i think that what happens is that it tries to clear cache at the time that it would usually disappear but fails because it isn't there or because it didn't fetch anything
Steps To Reproduce
go to any page open the console and after a while the error Cannot read properties of undefined (reading 'clear') will apear
remove() {
this.cache.clear(); // here is the error line
this.userjsCache.clear();
dom.remove(this.frame);
}
Is there an existing issue for this?
Type
User Script
Web Browser
brave
User Script Manager
Violentmonkey 2.31.0
URL
https://www.protectedtext.com/
What happened?
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'clear')
at Container.remove (Magic Userscript+ : Show Site All UserJS.user.js:3251:16)
at Container.timeoutFrame (Magic Userscript+ : Show Site All UserJS.user.js:3475:10)
remove @ Magic Userscript+ : Show Site All UserJS.user.js:3251
timeoutFrame @ Magic Userscript+ : Show Site All UserJS.user.js:3475
await in timeoutFrame
(anonymous) @ Magic Userscript+ : Show Site All UserJS.user.js:5986
document.addEventListener.once @ Magic Userscript+ : Show Site All UserJS.user.js:5958
i have inject on load and fetch on load set to false. i think that what happens is that it tries to clear cache at the time that it would usually disappear but fails because it isn't there or because it didn't fetch anything
Steps To Reproduce
go to any page open the console and after a while the error Cannot read properties of undefined (reading 'clear') will apear
remove() {
this.cache.clear(); // here is the error line
this.userjsCache.clear();
dom.remove(this.frame);
}