classList.toggle
force
There's a bunch of code, in the viewer, which for historical reasons use `switch` statements to add and remove CSS classes. This code can be simplified, and unnecessary duplication avoided, by using `classList.toggle` instead.
AppOptions
PDFHistory
PDFViewerApplication
showPreviousViewOnLoad
disablePageMode
viewOnLoad
FontInspector
0
getViewport
PDFPageProxy
DOMTokenList.toggle
RenderTask
PDFSinglePageViewer._scrollIntoView
attachDOMEventsToEventBus
EventBus
BaseViewer
span
div
PDFFindController.scrollMatchIntoView
TextLayerBuilder._renderMatches
highlightAll
ReadableStream
GENERIC
webViewerLoad