Bug 1879041 - Fix devtools bustage again. CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D203061
This commit is contained in:
Gregory Pappas 2024-02-28 23:51:50 +00:00
parent b2a52abd64
commit 7be77ad683

View file

@ -36,7 +36,12 @@ const lazy = createLazyLoaders({
*/
function selectElementsInPanelview(panelview) {
const document = panelview.ownerDocument;
const window = document.defaultView;
// Forcefully cast the window to the type Window
/** @type {any} */
const windowAny = document.defaultView;
/** @type {Window} */
const window = windowAny;
/**
* Get an element or throw an error if it's not found. This is more friendly