Skip to content

[bug]: fails to clear cache #66

@rsa17826

Description

@rsa17826

Is there an existing issue for this?

  • I have searched the existing issues

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);
}

Metadata

Metadata

Assignees

Labels

bug 🐞Something isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions