Skip to content

Commit

Permalink
Fix Background still transparent after back
Browse files Browse the repository at this point in the history
- Fixed background of body and app still being transparent after stopping shell video watch
  • Loading branch information
Zaarrg committed Dec 17, 2024
1 parent 3dc0e37 commit 7e635a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/yarn.lock
/npm-debug.log
.DS_Store
.prettierignore
.prettierignore
/.idea/
2 changes: 2 additions & 0 deletions src/common/NavBar/HorizontalNavBar/HorizontalNavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const { t } = require('i18next');

const HorizontalNavBar = React.memo(({ className, route, query, title, backButton, searchBar, fullscreenButton, navMenu, ...props }) => {
const backButtonOnClick = React.useCallback(() => {
document.querySelector('body').style.background = '';
document.getElementById('app').style.background = '';
window.history.back();
}, []);
const [fullscreen, requestFullscreen, exitFullscreen] = useFullscreen();
Expand Down

0 comments on commit 7e635a1

Please sign in to comment.