Skip to content

Commit e49c0a0

Browse files
alicialicsgreggman
authored andcommitted
fix spelling error on cors page
1 parent 57a9628 commit e49c0a0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

webgl/lessons/ko/webgl-cors-permission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ WebGL에서는 텍스처로 사용하기 위해 이미지를 다운로드한 다
6464

6565
그런 다음 데이터를 가져옵니다.
6666

67-
var data = ctx.getImageData(0, 0, width, heigh);
67+
var data = ctx.getImageData(0, 0, width, height);
6868

6969
하지만 다른 도메인에서 가져와 그린 이미지라면 브라우저는 캔버스를 *오염*되었다고 표시하고 `ctx.getImageData`를 호출할 때 보안 오류가 발생합니다.
7070

webgl/lessons/ru/webgl-cors-permission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ TOC: WebGL - Кросс-доменные изображения
6262

6363
Затем получаем данные
6464

65-
var data = ctx.getImageData(0, 0, width, heigh);
65+
var data = ctx.getImageData(0, 0, width, height);
6666

6767
Но если изображение пришло с другого домена, браузер отметит canvas *запятнанным*
6868
и вы получите ошибку безопасности при вызове `ctx.getImageData`.

webgl/lessons/webgl-cors-permission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ has a way to see inside the image. First you draw the image into the canvas
5959

6060
Then you get the data
6161

62-
var data = ctx.getImageData(0, 0, width, heigh);
62+
var data = ctx.getImageData(0, 0, width, height);
6363

6464
But, if the image you drew came from a different domain the browser will mark the canvas as *tainted* and
6565
you'll get a security error when you call `ctx.getImageData`

webgl/lessons/zh_cn/webgl-cors-permission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ TOC: WebGL 跨域图像
5757

5858
然后就可以获取数据
5959

60-
var data = ctx.getImageData(0, 0, width, heigh);
60+
var data = ctx.getImageData(0, 0, width, height);
6161

6262
但是如果绘制的图像来自不同的域名,浏览器就会将画布标记为**被污染**
6363
然后当你调用 `ctx.getImageData` 时就会得到一个安全错误。

0 commit comments

Comments
 (0)