Skip to content

Commit

Permalink
refactor(popup): remove condition to show webrtc options; #333
Browse files Browse the repository at this point in the history
  • Loading branch information
sereneblue committed May 2, 2020
1 parent 555b887 commit d41a388
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions src/popup/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -560,37 +560,35 @@
<span class="ml-1">{{ localizations['popup.options.standard.resistFingerprinting'] }}</span>
</label>
</div>
<div v-show="!settings.options.blockMediaDevices">
<div class="flex items-center mb-1">
<label class="cursor-pointer">
<input
id="disableWebRTC"
@change="changeSetting($event)"
:checked="settings.options.disableWebRTC"
name="options.disableWebRTC"
type="checkbox"
class="text-primary form-checkbox"
/>
<span class="ml-1">{{ localizations['popup.options.standard.disableWebRTC'] }}</span>
</label>
</div>
<div v-show="!settings.options.disableWebRTC" class="flex items-center pl-6 mb-2">
<label class="w-full">
{{ localizations['popup.options.standard.webRTCPolicy'] }}
<select
id="webRTCPolicy"
@change="changeSetting($event)"
:value="settings.options.webRTCPolicy"
name="options.webRTCPolicy"
class="form-select mt-1 block w-full"
>
<option value="default">{{ localizations['text.default'] }}</option>
<option value="default_public_and_private_interfaces">{{ localizations['popup.options.standard.webRTCPolicy.publicPrivate'] }}</option>
<option value="default_public_interface_only">{{ localizations['popup.options.standard.webRTCPolicy.public'] }}</option>
<option value="disable_non_proxied_udp">{{ localizations['popup.options.standard.webRTCPolicy.nonProxified'] }}</option>
</select>
</label>
</div>
<div class="flex items-center mb-1">
<label class="cursor-pointer">
<input
id="disableWebRTC"
@change="changeSetting($event)"
:checked="settings.options.disableWebRTC"
name="options.disableWebRTC"
type="checkbox"
class="text-primary form-checkbox"
/>
<span class="ml-1">{{ localizations['popup.options.standard.disableWebRTC'] }}</span>
</label>
</div>
<div v-show="!settings.options.disableWebRTC" class="flex items-center pl-6 mb-2">
<label class="w-full">
{{ localizations['popup.options.standard.webRTCPolicy'] }}
<select
id="webRTCPolicy"
@change="changeSetting($event)"
:value="settings.options.webRTCPolicy"
name="options.webRTCPolicy"
class="form-select mt-1 block w-full"
>
<option value="default">{{ localizations['text.default'] }}</option>
<option value="default_public_and_private_interfaces">{{ localizations['popup.options.standard.webRTCPolicy.publicPrivate'] }}</option>
<option value="default_public_interface_only">{{ localizations['popup.options.standard.webRTCPolicy.public'] }}</option>
<option value="disable_non_proxied_udp">{{ localizations['popup.options.standard.webRTCPolicy.nonProxified'] }}</option>
</select>
</label>
</div>
<div class="flex items-center mb-2">
<label class="w-full mt-2">
Expand Down

0 comments on commit d41a388

Please sign in to comment.