diff options
Diffstat (limited to 'devtools/client/performance-new/popup/menu-button.sys.mjs')
-rw-r--r-- | devtools/client/performance-new/popup/menu-button.sys.mjs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/devtools/client/performance-new/popup/menu-button.sys.mjs b/devtools/client/performance-new/popup/menu-button.sys.mjs index f1aee09af4..3dfffb4098 100644 --- a/devtools/client/performance-new/popup/menu-button.sys.mjs +++ b/devtools/client/performance-new/popup/menu-button.sys.mjs @@ -32,10 +32,9 @@ const WIDGET_ID = "profiler-button"; /** * Add the profiler button to the navbar. * - * @param {ChromeDocument} document The browser's document. * @return {void} */ -function addToNavbar(document) { +function addToNavbar() { const { CustomizableUI } = lazy.CustomizableUI(); CustomizableUI.addWidgetToArea(WIDGET_ID, CustomizableUI.AREA_NAVBAR); @@ -173,7 +172,7 @@ function initialize(toggleProfilerKeyShortcuts) { /** * @type {(event: { target: ChromeHTMLElement | XULElement }) => void} */ - onViewHiding(event) { + onViewHiding() { // Clean-up the view. This removes all of the event listeners. for (const fn of panelState.cleanup) { fn(); @@ -292,8 +291,7 @@ function initialize(toggleProfilerKeyShortcuts) { }); }, - // @ts-ignore - Bug 1674368 - onCommand: event => { + onCommand: () => { if (Services.profiler.IsPaused()) { // A profile is already being captured, ignore this event. return; |