2.0.2 • Published 5 years ago
heyoffline v2.0.2
heyoffline.js
Notify your users when their network goes down. Make sure they don't lose anything.
Features
- Notify on general network outage
- Notify only when users have unsaved form field states
- Default, pretty generic, good looking styles
Setup
Module
import Heyoffline from "./dist/heyoffline.esm.js"
new Heyoffline()
Browser
<script src="dist/heyoffline.umd.js"></script>
new Heyoffline({
monitorFields: true,
fields: ".monitoredFields"
});
Options
Events
Requirements
Heyoffline is framework-agnostic vanilla JS.
Source code
All efforts have been made to keep the source as clean and readable as possible.
Requirements
Heyoffline.js is released under an MIT License, so do with it what you will.