Fix Enhanced Media Controls disabled state
ClosedPublic

Authored by broulik on Jul 2 2018, 10:17 AM.

Details

Summary

When this code ran, settings weren't loaded yet, so the checkbox was always disabled on opening settings.

Test Plan

Opened settings with media controls enabled, enhanced checkbox was enabled.
Opened settings with media controls disabled, enhanced checkbox was disabled.
Settings still seem to work fine
Also ported to querySelector instead of querySelectorAll[0]

Diff Detail

Repository
R856 Plasma Browser Integration
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Jul 2 2018, 10:17 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 2 2018, 10:17 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jul 2 2018, 10:17 AM
davidedmundson accepted this revision.Jul 2 2018, 10:29 AM
This revision is now accepted and ready to land.Jul 2 2018, 10:29 AM
This revision was automatically updated to reflect the committed changes.