bundles/org.eclipse.orion.client.core/web/orion/fileUtils.js
function makeRelative(location) {
		if (!location) {
			return location;
		}
		var hostName = window.location.protocol + "//" + window.location.host; //$NON-NLS-0$
		if (location.indexOf(hostName) === 0) {
			return location.substring(hostName.length);
		}
		return location;
	}
function makeRelative(location) {
		if (!location) {
			return location;
		}
		var hostName = window.location.protocol + "//" + window.location.host; //$NON-NLS-0$
		if (location.indexOf(hostName) === 0) {
			return location.substring(hostName.length);
		}
		return location;
	}
function makeRelative ( location ) { if ( ! location ) { return location ; } var hostName = window . location . protocol + "//" + window . location . host ; //$NON-NLS-0$ if ( location . indexOf ( hostName ) === 0 ) { return location . substring ( hostName . length ) ; } return location ; }
This class contains static utility methods. It is not intended to be instantiated.
@class This class contains static utility methods.
@name orion.fileUtils
This class contains static utility methods . It is not intended to be instantiated .