Author Aide API Methods
isSafeToUnload()
Checks if there are currently any unsaved changes or not. That is, whether it is safe to unload the Author Aide API instance, or reload the page.
You would want to use this method to ensure that any unsaved changes will not be lost when navigating to another page or when using Author Aide's navigate method.
Examples
const isSafeToUnload = authorAideApp.isSafeToUnload();
console.log(isSafeToUnload);
Arguments
None.
Return value
Type boolean