Skip to content

Commit

Permalink
fix: CE inheritance bug
Browse files Browse the repository at this point in the history
fix: #980
  • Loading branch information
windingwind committed May 19, 2024
1 parent ea730e6 commit 689fa18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elements/workspace/detailsPane.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { config } from "../../../package.json";
const ItemDetails = customElements.get("item-details")! as any;
const ItemDetails = document.createElement("item-details").constructor! as any;

export class DetailsPane extends ItemDetails {
content = MozXULElement.parseXULToFragment(`
Expand Down
3 changes: 2 additions & 1 deletion src/elements/workspace/related.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @ts-nocheck
import { config } from "../../../package.json";

const RelatedBox = customElements.get("related-box")! as typeof XULElementBase;
const RelatedBox = document.createElement("related-box")
.constructor! as typeof XULElementBase;

const _require = window.require;
const { getCSSItemTypeIcon } = _require("components/icons");
Expand Down

0 comments on commit 689fa18

Please sign in to comment.