removed extra debug, added debug for user awareness.

This commit is contained in:
Kasen IO 2020-01-22 14:53:55 -05:00
parent fd5ee3e1a7
commit 7a985b445e
2 changed files with 3 additions and 5 deletions

View file

@ -57,13 +57,12 @@ Rectangle {
function toggleWhitelist(enabled) {
Settings.setValue("private/whitelistEnabled", enabled);
console.info("NANI?",enabled);
console.info("Toggling Whitelist to:", enabled);
}
function initCheckbox() {
var check = Settings.getValue("private/whitelistEnabled");
console.info("Triggered init. Val:", check);
if (check == true) {
whitelistEnabled.toggle();
}
@ -102,7 +101,6 @@ Rectangle {
anchors.top: parent.top;
anchors.topMargin: 10;
onToggled: {
console.info("Triggered.0");
toggleWhitelist(whitelistEnabled.checked)
}

View file

@ -2374,9 +2374,9 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
bool whitelistEnabled = _whitelistEnabled.get();
if (!whitelistEnabled) {
qCDebug(scriptengine) << "Whitelist Enabled: " << whitelistEnabled;
passList = true;
}
qCDebug(scriptengine) << "Whitelist Enabled: " << whitelistEnabled;
// PULL SAFEURLS FROM INTERFACE.JSON Settings
QVariant raw = Setting::Handle<QVariant>("private/settingsSafeURLS").get();
@ -2391,7 +2391,7 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
QString domainSafeURL = URL_SCHEME_HIFI + "://" + currentDomain;
for (const auto& str : safeURLPrefixes) {
if (domainSafeURL.startsWith(str) || domainSafeIP.startsWith(str)) {
qCDebug(scriptengine) << whitelistPrefix << "Whitelist Bypassed. Current Domain Host: "
qCDebug(scriptengine) << whitelistPrefix << "Whitelist Bypassed, entire domain is whitelisted. Current Domain Host: "
<< nodeList->getDomainHandler().getHostname()
<< "Current Domain: " << currentDomain;
passList = true;