mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed comment
This commit is contained in:
@@ -37,7 +37,7 @@ export function useModelEditorFunctions<T>(modelName: EditorSupportedModels, emi
|
||||
})
|
||||
|
||||
/**
|
||||
* add event listener to page unload event (also triggered by router) to prevent accidentally closing with unsaved changes
|
||||
* add event listener to page unload event to prevent accidentally closing with unsaved changes
|
||||
*/
|
||||
function setupPageLeaveWarning() {
|
||||
window.onbeforeunload = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user