Skip to content

Commit 4ea58c7

Browse files
committed
updated so that it works with built version
1 parent 7c5757a commit 4ea58c7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/containers/stage-header.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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));

‎src/lib/themes/themePersistance.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const STORAGE_KEY = 'tw:theme';
1111
*/
1212
const 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) {

0 commit comments

Comments
 (0)