Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2370,18 +2370,8 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 2369 unmodified lines | ||
| 2370 | 2370 | safeURLPrefixes += qEnvironmentVariable("EXTRA_WHITELIST").trimmed().split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts); |
| 2371 | 2371 | |
| 2372 | 2372 | // ENTITY SCRIPT WHITELIST TOGGLE CHECK |
| 2373 | − Setting::Handle<bool> whitelistEnabledSetting{"private/whitelistEnabled", true}; // Assume it is enabled. | |
| 2374 | 2373 | bool whitelistEnabled = whitelistEnabledSetting.get(); |
| 2375 | 2374 | |
| 2376 | − // QVariant whitelistEnabledExists = Setting::Handle<QVariant>("private/whitelistEnabled", false).get(); | |
| 2377 | − if (whitelistEnabled) { | |
| 2378 | − whitelistEnabledSetting.set(true); | |
| 2379 | − qCDebug(scriptengine) << "Whitelist toggle setting does not exist. Creating setting now."; | |
| 2380 | − } else { | |
| 2381 | − qCDebug(scriptengine) << "Whitelist toggle setting does not exist. Creating setting now."; | |
| 2382 | − whitelistEnabledSetting.set(false); | |
| 2383 | − } | |
| 2384 | − | |
| 2385 | 2375 | if (!whitelistEnabled) { |
| 2386 | 2376 | passList = true; |
| 2387 | 2377 | } |