Skip to content

Commit

Permalink
Add html vr class
Browse files Browse the repository at this point in the history
  • Loading branch information
YueyingLu committed Aug 27, 2023
1 parent b4b71bc commit 8c7db70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ const history = createHashHistory();
const { visualRefresh } = parseQuery(history.location.search);

// The VR class needs to be set before any React rendering occurs.
document.body.classList.toggle('awsui-visual-refresh', visualRefresh);
// document.body.classList.toggle('awsui-visual-refresh', visualRefresh);
document.getElementsByTagName('html')[0].classList.toggle('awsui-visual-refresh', visualRefresh);

render(
<HashRouter>
Expand Down

0 comments on commit 8c7db70

Please sign in to comment.