forked from mirrors/gecko-dev
Bug 1879041 - Fix devtools bustage again. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D203061
This commit is contained in:
parent
b2a52abd64
commit
7be77ad683
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue