Closed Bug 1774622 Opened 3 years ago Closed 3 years ago

Make getDevices return a Map keyed by device type

Categories

(DevTools :: Responsive Design Mode, task)

task

Tracking

(firefox103 fixed)

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

At the moment (see devices.js) it returns an object with a TYPES property, and then one property for each type in TYPES.

It should be easy to turn it into a Map, keyed by type.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f8441890000 [devtools] Return Map from getDevices. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: