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`.",
|
"hint": "Adds some of BetterDiscord's internal modules to `global._bd`.",
|
||||||
"value": false
|
"value": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "unsafe-content",
|
|
||||||
"type": "bool",
|
|
||||||
"text": "Allow unverified content",
|
|
||||||
"hint": "Allow loading unverified plugins/themes",
|
|
||||||
"value": "false"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "debugger-keybind",
|
"id": "debugger-keybind",
|
||||||
"type": "keybind",
|
"type": "keybind",
|
||||||
|
@ -229,6 +222,13 @@
|
||||||
{
|
{
|
||||||
"id": "default",
|
"id": "default",
|
||||||
"settings": [
|
"settings": [
|
||||||
|
{
|
||||||
|
"id": "unsafe-content",
|
||||||
|
"type": "bool",
|
||||||
|
"text": "Allow unverified content",
|
||||||
|
"hint": "Allow loading unverified plugins/themes",
|
||||||
|
"value": "false"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "tracking-protection",
|
"id": "tracking-protection",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
|
|
@ -222,7 +222,7 @@ export default class {
|
||||||
*/
|
*/
|
||||||
static async preloadContent(dirName, reload = false, index) {
|
static async preloadContent(dirName, reload = false, index) {
|
||||||
try {
|
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;
|
const packed = typeof dirName === 'object' && dirName.packed;
|
||||||
|
|
||||||
// Block any unpacked content as they can't be verified
|
// Block any unpacked content as they can't be verified
|
||||||
|
|
Loading…
Reference in New Issue