MCPcopy Index your code
hub / github.com/TruthHun/BookStack / isCrossOriginURL

Function isCrossOriginURL

static/cropper/2.3.4/cropper.js:137–145  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

135 }
136
137 function isCrossOriginURL(url) {
138 var parts = url.match(/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i);
139
140 return parts && (
141 parts[1] !== location.protocol ||
142 parts[2] !== location.hostname ||
143 parts[3] !== location.port
144 );
145 }
146
147 function addTimestamp(url) {
148 var timestamp = 'timestamp=' + (new Date()).getTime();

Callers 1

cropper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected