Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyun-J committed Feb 21, 2022
1 parent f7b61e9 commit 5aed9c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
15 changes: 1 addition & 14 deletions README-ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,7 @@ test(200);

### 인터페이스 등록

1. [FlexHybridApp-Script](https://github.com/Kyun-J/FlexHybridApp-Scripts) 적용시

```js
// in js
$flex.web.funcName = async (req) => {
return await new Promise((resolve) => {
setTimeout(() => resolve(`received from web - ${req}`), 100);
});
};
```

2. 미적용시

`window.onFlexLoad` 함수를 통해 \$flex 객체의 로드를 확인한 후 인터페이스를 등록하여햐 합니다.
\$flex 객체가 로드 된 후 (`window.onFlexLoad` 함수로 \$flex 로드 시점 확인 가능) 인터페이스를 등록하여햐 합니다.

```js
// in js
Expand Down
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,7 @@ test(200);

### Interface registration

1. When apply [FlexHybridApp-Script](https://github.com/Kyun-J/FlexHybridApp-Scripts)

```js
// in js
$flex.web.funcName = async (req) => {
return await new Promise((resolve) => {
setTimeout(() => resolve(`received from web - ${req}`), 100);
});
};
```

2. Not apply

After checking the load of the \$flex object through the `window.onFlexLoad` function, register the interface.
After the \$flex object is loaded (the `window.onFlexLoad` function can be checked on the \$flex Load time), register the interface.

```js
// in js
Expand Down

0 comments on commit 5aed9c9

Please sign in to comment.