Remove main page toggle check

Authored by Jdlrobson on Feb 7 2018, 5:10 PM.

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.


Remove main page toggle check

This is redundant.
page.getLeadSectionElement() will return null if the main page
is special casing and sections have not been wrapped.

Removing this check also allows toggling to work on pages where
users want to treat main pages like any other page.

Bug: T177337
Change-Id: Ic52fd1c9f6cc4f727ca52c871f29c76997e47f1d
(cherry picked from commit b0970a4a7ead61dfb7b70bbacf4c4c1c867b5151)