Move unsafe-content under security

This commit is contained in:
Jiiks 2018-08-27 20:17:07 +03:00
parent 1009c62ea0
commit 2093c472b5
2 changed files with 8 additions and 8 deletions

View File

@ -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",

View File

@ -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