mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
⚡️ Disable anti-reload in dev mode
This commit is contained in:
@@ -33,7 +33,7 @@ export const ToggleEditModeAction = () => {
|
||||
useHotkeys([['mod+E', toggleEditMode]]);
|
||||
|
||||
useWindowEvent('beforeunload', (event: BeforeUnloadEvent) => {
|
||||
if (enabled) {
|
||||
if (enabled && process.env.NODE_ENV !== 'development') {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
event.returnValue = beforeUnloadEventText;
|
||||
return beforeUnloadEventText;
|
||||
|
||||
Reference in New Issue
Block a user