Skip to content

Commit fd448c8

Browse files
committed
fixed code block in readme
1 parent 9bec23a commit fd448c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ This plugin utlizes the `<canvas>` element and the `ImageData` object, and due t
6767
To enable CORS for images hosted on S3 buckets, follow the Amazon guide [here](http://docs.aws.amazon.com/AmazonS3/latest/UG/EditingBucketPermissions.html); adding the following to the bucket's CORS configuration:
6868

6969
```xml
70-
<CORSRule>
71-
<AllowedOrigin>*</AllowedOrigin>
72-
<AllowedMethod>GET</AllowedMethod>
73-
</CORSRule>
70+
<CORSRule>
71+
<AllowedOrigin>*</AllowedOrigin>
72+
<AllowedMethod>GET</AllowedMethod>
73+
</CORSRule>
7474
```
7575

7676
For all images, you can optionally also include a cross-origin attribute in your image. This is not absolutely necessary since the `anonymous` origin is set in the Javascript code.
7777

7878
```html
79-
<img src="/image.jpg" data-adaptive-background='1' cross-origin="anonymous"/>
79+
<img src="/image.jpg" data-adaptive-background='1' cross-origin="anonymous"/>
8080
```
8181

8282
Credit

0 commit comments

Comments
 (0)