Determine application referrer
Module to make a correct exit from the current application.
It can use
document.referrer or URL GET parameter
referrer to extract a link to the previous application.
npm install stb-referrer
Add to the scope:
var referrer = ;
Go back to the previous application:
locationhref = || '';
There is a global var
DEVELOPwhich activates additional consistency checks and protection logic not available in release mode.
stb-referrer is released under the MIT License.