1.0.0 • Published 8 years ago

remove-fb-hash v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

remove-fb-hash NPM version Downloads

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')()

LOL

wtf