File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ const mapDispatchToProps = dispatch => ({
9999 onSetStageSmall : ( ) => dispatch ( setStageSize ( STAGE_SIZE_MODES . small ) ) ,
100100 onSetStageFull : ( ) => dispatch ( setStageSize ( STAGE_SIZE_MODES . full ) ) ,
101101 onSetStageFullScreen : ( ) => {
102- if ( window . location . pathname === "/" ) {
102+ if ( window . location . pathname === "/" || window . location . pathname . includes ( "/index.html" ) || window . location . pathname === "/build/" ) {
103103 if ( document . documentElement . requestFullscreen ) {
104104 document . documentElement . requestFullscreen ( ) . then ( ( ) => {
105105 dispatch ( setFullScreen ( true ) ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const STORAGE_KEY = 'tw:theme';
1111 */
1212const systemPreferencesTheme = ( ) => {
1313 // @OVERRIDE if is on home page, return light theme
14- if ( window . location . pathname === "/" || window . location . pathname === "/index.html " ) {
14+ if ( window . location . pathname === "/" || window . location . pathname . includes ( "/index.html" ) || window . location . pathname === "/build/ " ) {
1515 return Theme . light ;
1616 }
1717 if ( PREFERS_HIGH_CONTRAST_QUERY && PREFERS_HIGH_CONTRAST_QUERY . matches ) {
You can’t perform that action at this time.
0 commit comments