I\'m working with Reactjs and have this requirement where I need to differentiate between Browser close event and Tab close event. I\'m using \'beforeunload\' for this, but