From 9b593c6afebe992d85179bc9fe580272614010b0 Mon Sep 17 00:00:00 2001 From: briskets Date: Tue, 9 Mar 2021 09:23:55 -0500 Subject: [PATCH] oops --- index.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.html b/index.html index 9ca9268..785d407 100644 --- a/index.html +++ b/index.html @@ -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; - } } }