vendor/assets/elfinder_OLD/js/elfinder.full.js
function (checkUrl) {
		var url;
		checkUrl = this.convAbsUrl(checkUrl);
		if (location.origin && window.URL) {
			try {
				url = new URL(checkUrl);
				return location.origin === url.origin;
			} catch(e) {}
		}
		url = document.createElement('a');
		url.href = checkUrl;
		return location.protocol === url.protocol && location.host === url.host && location.port && url.port;
	}
function (checkUrl) {
		var url;
		checkUrl = this.convAbsUrl(checkUrl);
		if (location.origin && window.URL) {
			try {
				url = new URL(checkUrl);
				return location.origin === url.origin;
			} catch(e) {}
		}
		url = document.createElement('a');
		url.href = checkUrl;
		return location.protocol === url.protocol && location.host === url.host && location.port && url.port;
	}
function ( checkUrl ) { var url ; checkUrl = this . convAbsUrl ( checkUrl ) ; if ( location . origin && window . URL ) { try { url = new URL ( checkUrl ) ; return location . origin === url . origin ; } catch ( e ) { } } url = document . createElement ( 'a' ) ; url . href = checkUrl ; return location . protocol === url . protocol && location . host === url . host && location . port && url . port ; }
Is same origin to current site

@param  String  check url
@return Boolean
Is same origin to current site