1.0.0 • Published 10 years ago
remove-fb-hash v1.0.0
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 --saveExample
ES6
import fixURL from 'remove-fb-hash'
fixURL()ES5
require('remove-fb-hash')()LOL

1.0.0
10 years ago