drop deprecated windowType from windows.get()

This commit is contained in:
Raymond Hill 2018-12-14 14:15:43 -05:00
parent c0aa325f6c
commit 932c13bfa0
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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,
})
);
});
}
);
}