remove-fb-hash
v1.0.0
Published
Remove annoying Facebook OAuth hash from URL
Downloads
4
Readme
remove-fb-hash
Information
When you login with Facebook and they redirect back to you, they attack an annoying ass hash to your url (#_=_
) - this is a simple module to remove it.
If pushState is available, it will use that - otherwise it will use window.location. This means it should work back to IE6.
Install
npm install remove-fb-hash --save
Example
ES6
import fixURL from 'remove-fb-hash'
fixURL()
ES5
require('remove-fb-hash')()