Upgrade Shoelace & Lit (#329)

Related to https://github.com/webrecorder/browsertrix/issues/1836 --
Upgrades Shoelace and Lit to match browsertrix.
version: bump to 2.0.2
This commit is contained in:
sua yoo
2024-06-12 11:48:08 -07:00
committed by GitHub
parent dc26fb25a1
commit 9cfeca3428
7 changed files with 117 additions and 106 deletions
+2 -4
View File
@@ -12,9 +12,7 @@ import type {
SlDropdown,
SlSelectEvent,
} from "@shoelace-style/shoelace";
import "@shoelace-style/shoelace/dist/components/alert/alert.js";
import "@shoelace-style/shoelace/dist/components/button/button.js";
import "@shoelace-style/shoelace/dist/components/dialog/dialog.js";
import {
wrapCss,
IS_APP,
@@ -316,7 +314,7 @@ class Item extends LitElement {
if (
this._replaceLoc ||
Object.keys(changedProperties.get("tabData")).length === 0
Object.keys(changedProperties.get("tabData") || {}).length === 0
) {
const newLoc = new URL(window.location.href);
newLoc.hash = this._locationHash;