Skip to content

Commit 7d2f837

Browse files
committed
Remove crossOrigin=anonymous
1 parent 9ed6e9d commit 7d2f837

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

app/routes/view[.]html/IconList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ function IconCard({ imageCss, size, url }: ICardProps) {
1313
<div className="flex flex-col items-center lg:items-end">
1414
<img
1515
alt={`${size} for ${url}`}
16-
crossOrigin="anonymous"
1716
src={url}
1817
style={{ ...imageCss, width: `${size}pt`, height: `${size}pt` }}
1918
/>

app/routes/view[.]html/route.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ export default function ViewPage() {
204204
onError={(evt) => {
205205
onImageError(evt);
206206
}}
207-
crossOrigin="anonymous"
208207
onLoad={() => {
209208
onImageLoad();
210209
console.log("via onLoad");
@@ -237,7 +236,6 @@ export default function ViewPage() {
237236
) : (
238237
<img
239238
alt={url}
240-
crossOrigin="anonymous"
241239
src={url}
242240
style={{
243241
objectFit: "cover",
@@ -258,28 +256,28 @@ export default function ViewPage() {
258256
</noscript>
259257
{isDebug ? (
260258
<>
261-
<p style={{ position: "absolute", top: "0pt", left: "8px" }}>
259+
<div style={{ position: "absolute", top: "0pt", left: "8px" }}>
262260
Window.inner: {globalThis.innerWidth}x{globalThis.innerHeight}
263-
</p>
264-
<p style={{ position: "absolute", top: "14pt", left: "8px" }}>
261+
</div>
262+
<div style={{ position: "absolute", top: "14pt", left: "8px" }}>
265263
Image natural size: {imageRef.current?.naturalWidth}x
266264
{imageRef.current?.naturalHeight}
267-
</p>
268-
<p style={{ position: "absolute", top: "28pt", left: "8px" }}>
265+
</div>
266+
<div style={{ position: "absolute", top: "28pt", left: "8px" }}>
269267
Image display size: {imageCss["width"]}x{imageCss["height"]}
270-
</p>
271-
<p style={{ position: "absolute", top: "42pt", left: "8px" }}>
268+
</div>
269+
<div style={{ position: "absolute", top: "42pt", left: "8px" }}>
272270
Zoom: cur={currentZoom}, url={urlZoom}, max=
273271
{calcMaxZoom(naturalWidth, naturalHeight, containerWidth, containerHeight)})
274-
</p>
275-
<p style={{ position: "absolute", top: "56pt", left: "8px" }}>
272+
</div>
273+
<div style={{ position: "absolute", top: "56pt", left: "8px" }}>
276274
Container boundingClientRect: {containerRef.current?.getBoundingClientRect().width}x
277275
{containerRef.current?.getBoundingClientRect().height}
278-
</p>
279-
<p style={{ position: "absolute", top: "70pt", left: "8px" }}>
276+
</div>
277+
<div style={{ position: "absolute", top: "70pt", left: "8px" }}>
280278
Container client: {containerRef.current?.clientWidth}x
281279
{containerRef.current?.clientHeight}
282-
</p>
280+
</div>
283281
</>
284282
) : null}
285283
</div>

0 commit comments

Comments
 (0)