Skip to content

Commit

Permalink
🐛 Use untyped version of mozilla's FaviconLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Dec 25, 2023
1 parent 4e6dc74 commit 11cefea
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 172 deletions.
4 changes: 1 addition & 3 deletions src/actors/LinkHandlerChild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ type PageShow = PageTransitionEvent & { type: 'pageshow' }
type PageHide = PageTransitionEvent & { type: 'pagehide' }

export class LinkHandlerChild extends JSWindowActorChild {
iconLoader = new FaviconLoader(
this,
) as import('../modules/FaviconLoader.ts').FaviconLoader
iconLoader = new FaviconLoader(this)
loadedTabIcon = false

/**
Expand Down
4 changes: 0 additions & 4 deletions src/link.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ declare type LazyImportType<Modules extends Partial<MozESMExportFile>> =
| { [Key in keyof Modules]: MozESMExportType[Key] }
| {}

declare module 'resource://app/modules/FaviconLoader.sys.mjs' {
export const FaviconLoader: typeof import('./modules/FaviconLoader').FaviconLoader
}

declare module 'resource://app/modules/TypedImportUtils.sys.mjs' {
export const lazyESModuleGetters: typeof import('./modules/TypedImportUtils').lazyESModuleGetters
}
Expand Down
8 changes: 1 addition & 7 deletions src/modules/link.json
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
[
"BrowserGlue",
"BrowserWindowTracker",
"EPageActions",
"FaviconLoader",
"TypedImportUtils"
]
["BrowserGlue", "BrowserWindowTracker", "EPageActions", "TypedImportUtils"]
Loading

0 comments on commit 11cefea

Please sign in to comment.