From 5aed9c9e71cfb60aa415ca74c0aaf494209934f3 Mon Sep 17 00:00:00 2001 From: Kyun-J Date: Mon, 21 Feb 2022 11:46:02 +0900 Subject: [PATCH] update readme --- README-ko.md | 15 +-------------- README.md | 15 +-------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/README-ko.md b/README-ko.md index 62d765f..ec8bdc6 100644 --- a/README-ko.md +++ b/README-ko.md @@ -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 diff --git a/README.md b/README.md index 1cc0920..1de26cf 100644 --- a/README.md +++ b/README.md @@ -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