Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline notifications #32

Open
2 of 6 tasks
leekelleher opened this issue Oct 10, 2022 · 1 comment
Open
2 of 6 tasks

Offline notifications #32

leekelleher opened this issue Oct 10, 2022 · 1 comment

Comments

@leekelleher
Copy link
Owner

leekelleher commented Oct 10, 2022

Idea summary

Notify Umbraco back-office users if they go offline

heyoffline.js - If a content editor is working on a fragile internet connection, this plugin could warn them when their network goes down. Make sure they don't lose anything. (Maybe save to localStorage?)

Update (August 2023). The heyoffline,js library hasn't been maintained in over 3 years.
All modern browsers now support the window.navigator.onLine property. It might be simpler to hook into the offline event. See this StackOverflow question for a code example: https://stackoverflow.com/a/53820206/12787

Which categories would the idea fit?

  • Back-office
  • Developer Tools
  • Front-end
  • Starter Kits
  • Misc

Code of Conduct

  • I agree to follow this project's Code of Conduct.
@leekelleher
Copy link
Owner Author

After updating with info about the offline event hook, I hacked together a little code snippet to add a notification icon to the backoffice nav bar: https://gist.github.com/leekelleher/7285d00188906dfb4b29a39183540556#file-umb-hack-offlineindicator-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant