Move unsafe-content under security
This commit is contained in:
parent
1009c62ea0
commit
2093c472b5
|
@ -34,13 +34,6 @@
|
|||
"hint": "Adds some of BetterDiscord's internal modules to `global._bd`.",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"id": "unsafe-content",
|
||||
"type": "bool",
|
||||
"text": "Allow unverified content",
|
||||
"hint": "Allow loading unverified plugins/themes",
|
||||
"value": "false"
|
||||
},
|
||||
{
|
||||
"id": "debugger-keybind",
|
||||
"type": "keybind",
|
||||
|
@ -229,6 +222,13 @@
|
|||
{
|
||||
"id": "default",
|
||||
"settings": [
|
||||
{
|
||||
"id": "unsafe-content",
|
||||
"type": "bool",
|
||||
"text": "Allow unverified content",
|
||||
"hint": "Allow loading unverified plugins/themes",
|
||||
"value": "false"
|
||||
},
|
||||
{
|
||||
"id": "tracking-protection",
|
||||
"type": "bool",
|
||||
|
|
|
@ -222,7 +222,7 @@ export default class {
|
|||
*/
|
||||
static async preloadContent(dirName, reload = false, index) {
|
||||
try {
|
||||
const unsafeAllowed = Settings.getSetting('core', 'advanced', 'unsafe-content').value;
|
||||
const unsafeAllowed = Settings.getSetting('security', 'default', 'unsafe-content').value;
|
||||
const packed = typeof dirName === 'object' && dirName.packed;
|
||||
|
||||
// Block any unpacked content as they can't be verified
|
||||
|
|
Loading…
Reference in New Issue