šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

window-location-origin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

window-location-origin

Add support for browsers that don't natively support window.location.origin

0.1.0
latest
Source
npm
Version published
Weekly downloads
5.3K
-4.14%
Maintainers
1
Weekly downloads
Ā 
Created
Source

Travis npm Bower Libraries.io for GitHub license

window-location-origin.js

Add support for browsers that don't natively support window.location.origin

Example

window.location.origin
// #=> https://github.com

Install

Bower
bower install window-location-origin

Include the script into your site

<script src="bower_components/window-location-origin.js"></script>
NPM
npm install window-location-origin

Require the script into your project

require 'window-location-origin'

Stackoverflow discussion: JavaScript/jQuery method to find base URL from a string

Keywords

window.location.origin

FAQs

Package last updated on 12 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts