good_goodbye
Easy way to determine any beforeunload callbacks do you need.
Installation
Install with yarn:
yarn add good-goodbye# or npm: npm i -S good-goodbye
Usage
GooodGoodbye //To show browser prompt return text or true valueGooodGoodbye //Get all callbacksGooodGoodbyecallbacks // => { testUnload: f } //Unset callbackGooodGoodbye //Unset all callbacksGooodGoodbye
License
Released under MIT License.
Authors
Created by spaceIess.