Last active
June 1, 2016 21:52
-
-
Save stuyam/3b1057bfffae78cd49ca3da6bc510c40 to your computer and use it in GitHub Desktop.
Send Bacon on the web as an alias to send a beacon.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.navigator.__proto__.sendBacon = function(url, data){ | |
window.navigator.sendBeacon(url, data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This creates an alias so if you are tired of sending Beacons you can send Bacons 🐷 with: