web extension: fix vencord sometimes breaking after reloading

Co-Authored-By: vee <vendicated+git@riseup.net>
This commit is contained in:
Nuckyz 2024-06-22 01:49:43 -03:00 committed by Vendicated
parent 3d46f19025
commit 87d3e30ebf
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
4 changed files with 36 additions and 16 deletions

View file

@ -22,7 +22,15 @@
"run_at": "document_start",
"matches": ["*://*.discord.com/*"],
"js": ["content.js"],
"all_frames": true
"all_frames": true,
"world": "ISOLATED"
},
{
"run_at": "document_start",
"matches": ["*://*.discord.com/*"],
"js": ["dist/Vencord.js"],
"all_frames": true,
"world": "MAIN"
}
],