Skip to content

Commit 77db60d

Browse files
committed
Fix options
1 parent f9ae69a commit 77db60d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extras/popup/popup.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ async function getFeatures() {
690690
if (feature.options) {
691691
for (var optionPlace in feature.options) {
692692
var option = feature.options[optionPlace];
693-
if (option.type === 4) {
693+
let type = option.type
694+
if (type === 4) {
694695
var optionDiv = document.createElement("div");
695696
optionDiv.className = "option";
696697
var label = document.createElement("label");
@@ -790,7 +791,7 @@ async function getFeatures() {
790791
}
791792
div.appendChild(optionDiv);
792793

793-
if (option.type === 4) {
794+
if (type !== 4) {
794795
input.dataset.validation = btoa(
795796
JSON.stringify(option.validation || [])
796797
);

0 commit comments

Comments
 (0)