@pixi/utils
Version:
Collection of utilities used by PixiJS
12 lines (11 loc) • 513 B
TypeScript
/**
* Sets the `crossOrigin` property for this resource based on if the url
* for this resource is cross-origin. If crossOrigin was manually set, this
* function does nothing.
* Nipped from the resource loader!
* @ignore
* @param {string} url - The url to test.
* @param {object} [loc=window.location] - The location object to test against.
* @returns {string} The crossOrigin value to use (or empty string for none).
*/
export declare function determineCrossOrigin(url: string, loc?: Location): string;