mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
non-working state
This commit is contained in:
parent
bd066adbf6
commit
61943d0edb
2 changed files with 2 additions and 10 deletions
|
@ -2370,18 +2370,8 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
|
|||
safeURLPrefixes += qEnvironmentVariable("EXTRA_WHITELIST").trimmed().split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts);
|
||||
|
||||
// ENTITY SCRIPT WHITELIST TOGGLE CHECK
|
||||
Setting::Handle<bool> whitelistEnabledSetting{"private/whitelistEnabled", true}; // Assume it is enabled.
|
||||
bool whitelistEnabled = whitelistEnabledSetting.get();
|
||||
|
||||
// QVariant whitelistEnabledExists = Setting::Handle<QVariant>("private/whitelistEnabled", false).get();
|
||||
if (whitelistEnabled) {
|
||||
whitelistEnabledSetting.set(true);
|
||||
qCDebug(scriptengine) << "Whitelist toggle setting does not exist. Creating setting now.";
|
||||
} else {
|
||||
qCDebug(scriptengine) << "Whitelist toggle setting does not exist. Creating setting now.";
|
||||
whitelistEnabledSetting.set(false);
|
||||
}
|
||||
|
||||
if (!whitelistEnabled) {
|
||||
passList = true;
|
||||
}
|
||||
|
|
|
@ -973,6 +973,8 @@ protected:
|
|||
|
||||
Setting::Handle<bool> _enableExtendedJSExceptions { _SETTINGS_ENABLE_EXTENDED_EXCEPTIONS, true };
|
||||
|
||||
Setting::Handle<bool> whitelistEnabledSetting { "DELME/whitelistEnabled", false }; // Set to false if not exist.
|
||||
|
||||
QWeakPointer<ScriptEngines> _scriptEngines;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue