Skip to content

Commit 7a72771

Browse files
committed
FIX:Render empty content and attributes elements
1 parent 2807d36 commit 7a72771

File tree

5 files changed

+18
-30
lines changed

5 files changed

+18
-30
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Use iFrameX is really easy, only need do two things:
3131

3232
```js
3333
const iframe = new iFrameX(options);
34-
await iframe.create(); // Asynchronous
34+
iframe.create();
3535
```
3636

3737
## Params
@@ -165,7 +165,7 @@ const content = {
165165
};
166166

167167
const iframe = new IframeX({content, options});
168-
await iframe.create();
168+
iframe.create();
169169
```
170170

171171
The above example code, create an iframe and when this will render, sent custom event `CustomEventName` with data, that contains an `Object` with `date: new Date()`. (Obviously data is completely customizable)

dist/iframex.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)