Skip to content

Commit

Permalink
More minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rentamob authored Nov 10, 2016
1 parent 1b52794 commit bd17e3a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ chrome.extension.isAllowedIncognitoAccess(function(isAllowedAccess){
var incognitoAllowed = document.getElementById('incognitoAllowed');
var incognitoDisallowed = document.getElementById('incognitoDisallowed');

if(isAllowedAccess == true){
if(isAllowedAccess){
incognitoDisallowed.style.display = 'none';
}
else{
Expand Down Expand Up @@ -110,13 +110,11 @@ function saveOptions(){
status.textContent = 'Options saved.';
status.style.color = "green";
try{
chrome.storage.local.get('rtcMultipleRoutes', function(items){
chrome.storage.local.get(null, function(items){
chrome.privacy.network.webRTCMultipleRoutesEnabled.set({
value: !items.rtcMultipleRoutes,
scope: 'regular'
});
});
chrome.storage.local.get('nonProxiedUDP', function(items){
chrome.privacy.network.webRTCNonProxiedUdpEnabled.set({
value: !items.nonProxiedUDP,
scope: 'regular'
Expand Down

0 comments on commit bd17e3a

Please sign in to comment.