Merge pull request #10 from 0dayCTF/more-hacks

More hacks
This commit is contained in:
briskets 2021-03-09 09:26:05 -05:00 committed by GitHub
commit 2d1fa075aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,15 +522,11 @@
element[attribute] = isChecked;
}
if (element.class === "SELECT") {
if (element.nodeName === "SELECT") {
const selectedItem = options.find(option => option[attribute] === localStorage.getItem(key));
selectedItem.selected = true;
}
if (element.id === "shell") {
const selectedItem = options.find(option => option[attribute] === localStorage.getItem(key));
selectedItem.selected = true;
}
}
}