Skip to content

Commit

Permalink
Made it so we can reload on notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudmanic committed Oct 11, 2024
1 parent 0964c77 commit 5a5cdba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"go": "yarn run dev",
"dev": "NODE_ENV=development next dev --port 3001",
"build": "NODE_ENV=production yarn run relay && next build",
"build": "NODE_ENV=test yarn run test && NODE_ENV=production yarn run relay && next build",
"start": "NODE_ENV=production next start --port 3001",
"test": "yarn run relay && yarn run lint && yarn run jest --testPathIgnorePatterns=e2e -w 1",
"test:e2e": "dotenv-extended --defaults=./.env --path=./.env.local yarn run jest e2e-tests.test.js",
Expand Down
6 changes: 6 additions & 0 deletions src/components/notification/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ const Notification = ({ slot, user, onOpenLeaderboard }) => {
}
break

// Reload the entire page.
case 'reload-page':
// eslint-disable-next-line no-undef
window.location.reload()
break

// Default do nothing
default:
break
Expand Down

0 comments on commit 5a5cdba

Please sign in to comment.