Skip to content

Commit

Permalink
Minor README tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Feb 3, 2023
1 parent 70484e4 commit d5b2de2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ npm install -g wasm-feature-detect
<script type="module">
import { simd } from "wasm-feature-detect";
simd().then((simdSupported) => {
if (simdSupported) {
/* SIMD support */
} else {
/* No SIMD support */
}
});
if (await simd()) {
/* SIMD support */
} else {
/* No SIMD support */
}
</script>
```

Expand All @@ -44,7 +42,9 @@ If required, there’s also a UMD version
```html
<script src="https://unpkg.com/wasm-feature-detect/dist/umd/index.js"></script>
<script>
wasmFeatureDetect.simd().then(/* same as above */);
if (await wasmFeatureDetect.simd()) {
// ...
}
</script>
```

Expand Down
16 changes: 8 additions & 8 deletions README.md.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ npm install -g wasm-feature-detect
<script type="module">
import { simd } from "wasm-feature-detect";
simd().then(simdSupported => {
if (simdSupported) {
/* SIMD support */
} else {
/* No SIMD support */
}
});
if (await simd()) {
/* SIMD support */
} else {
/* No SIMD support */
}
</script>
```

Expand All @@ -44,7 +42,9 @@ If required, there’s also a UMD version
```html
<script src="https://unpkg.com/wasm-feature-detect/dist/umd/index.js"></script>
<script>
wasmFeatureDetect.simd().then(/* same as above */);
if (await wasmFeatureDetect.simd()) {
// ...
}
</script>
```

Expand Down

0 comments on commit d5b2de2

Please sign in to comment.