mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-23 02:04:41 +00:00
version: fix multiple switchers #1050
This commit is contained in:
parent
b5f8bcc4e3
commit
17771625ba
3 changed files with 48 additions and 48 deletions
docs/assets/js
|
@ -65,7 +65,7 @@ var variants = {
|
|||
},
|
||||
|
||||
removeCustomVariantOption: function () {
|
||||
document.querySelectorAll(`.R-variantswitcher option[value=${this.customvariantname}]`).forEach((option) => {
|
||||
document.querySelectorAll(`.R-variantswitcher option[value="${this.customvariantname}"]`).forEach((option) => {
|
||||
option.remove();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue