HomePhabricator

Remove main page toggle check
14d7fdf6ab3bUnpublished

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

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.

Description

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)