@canopy-iiif/app 1.9.20 → 1.9.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/dist/index.mjs +4 -0
- package/ui/dist/index.mjs.map +2 -2
- package/ui/dist/server.mjs +4 -0
- package/ui/dist/server.mjs.map +2 -2
package/ui/dist/server.mjs
CHANGED
|
@@ -209,6 +209,10 @@ var Viewer = (props) => {
|
|
|
209
209
|
DEFAULT_VIEWER_OPTIONS,
|
|
210
210
|
props && props.options
|
|
211
211
|
);
|
|
212
|
+
const crossOriginExplicitlyUndefined = props && props.options && Object.prototype.hasOwnProperty.call(props.options, "crossOrigin") && props.options.crossOrigin === void 0;
|
|
213
|
+
if (crossOriginExplicitlyUndefined) {
|
|
214
|
+
mergedOptions.crossOrigin = null;
|
|
215
|
+
}
|
|
212
216
|
useEffect(() => {
|
|
213
217
|
let mounted = true;
|
|
214
218
|
const canUseDom = typeof window !== "undefined" && typeof document !== "undefined";
|