0.1.0 • Published 9 years ago
window-location-origin v0.1.0
window-location-origin.js
Add support for browsers that don't natively support window.location.origin
Example
window.location.origin
// #=> https://github.comInstall
Bower
bower install window-location-originInclude the script into your site
<script src="bower_components/window-location-origin.js"></script>NPM
npm install window-location-originRequire the script into your project
require 'window-location-origin'Stackoverflow discussion: JavaScript/jQuery method to find base URL from a string