dist/hello.all.js
function(path) {

		// If the path is empty
		if (!path) {
			return window.location;
		}

		// Chrome and FireFox support new URL() to extract URL objects
		else if (window.URL && URL instanceof Function && URL.length !== 0) {
			return new URL(path, window.location);
		}

		// Ugly shim, it works!
		else {
			var a = document.createElement('a');
			a.href = path;
			return a.cloneNode(false);
		}
	}
function(path) {

		// If the path is empty
		if (!path) {
			return window.location;
		}

		// Chrome and FireFox support new URL() to extract URL objects
		else if (window.URL && URL instanceof Function && URL.length !== 0) {
			return new URL(path, window.location);
		}

		// Ugly shim, it works!
		else {
			var a = document.createElement('a');
			a.href = path;
			return a.cloneNode(false);
		}
	}
function ( path ) { // If the path is empty if ( ! path ) { return window . location ; } // Chrome and FireFox support new URL() to extract URL objects else if ( window . URL && URL instanceof Function && URL . length !== 0 ) { return new URL ( path , window . location ) ; } // Ugly shim, it works! else { var a = document . createElement ( 'a' ) ; a . href = path ; return a . cloneNode ( false ) ; } }
Returns a URL instance
Returns a URL instance