Skip to content

Commit

Permalink
Merge pull request #2 from ambit-tsai/dev
Browse files Browse the repository at this point in the history
docs: update README
  • Loading branch information
ambit-tsai authored Jun 21, 2022
2 parents 6d55029 + 2fb0b87 commit 4aebc03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const realm = new ShadowRealm();

### Po**l**yfill: patch up the global object
```javascript
import 'shadowrealm-api/dist/polyfill.mjs'
import 'shadowrealm-api/dist/polyfill'

const realm = new ShadowRealm();
```
Expand Down Expand Up @@ -79,7 +79,7 @@ Use polyfills:
```js
import "fetch polyfill";
import "URL polyfill";
import "shadowrealm-api/dist/polyfill.mjs";
import "shadowrealm-api/dist/polyfill";
// Your codes
```

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const realm = new ShadowRealm();

### Po**l**yfill: 修补全局对象
```javascript
import 'shadowrealm-api/dist/polyfill.mjs'
import 'shadowrealm-api/dist/polyfill'

const realm = new ShadowRealm();
```
Expand Down Expand Up @@ -80,7 +80,7 @@ export { obj, fn };
```js
import "fetch polyfill";
import "URL polyfill";
import "shadowrealm-api/dist/polyfill.mjs";
import "shadowrealm-api/dist/polyfill";
// 你的代码
```

Expand Down

0 comments on commit 4aebc03

Please sign in to comment.