From 932c13bfa08b52c5f0c394474a4dcbfb97bf49e9 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 14 Dec 2018 14:15:43 -0500 Subject: [PATCH] drop deprecated windowType from windows.get() --- src/js/messaging.js | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index 8cacd0edf..b661d0f8f 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -1161,22 +1161,18 @@ const getLoggerData = function(details, activeTabId, callback) { tabs => { if ( Array.isArray(tabs) === false ) { return; } if ( tabs.length === 0 ) { return; } - browser.windows.get( - tabs[0].windowId, - { windowTypes: [ 'popup' ] }, - win => { - if ( win instanceof Object === false ) { return; } - vAPI.localStorage.setItem( - 'popupLoggerBox', - JSON.stringify({ - left: win.left, - top: win.top, - width: win.width, - height: win.height, - }) - ); - } - ); + browser.windows.get(tabs[0].windowId, win => { + if ( win instanceof Object === false ) { return; } + vAPI.localStorage.setItem( + 'popupLoggerBox', + JSON.stringify({ + left: win.left, + top: win.top, + width: win.width, + height: win.height, + }) + ); + }); } ); }