Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to evergreen URL for wasm-feature-detect library #353

Merged
merged 4 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roadmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
);
for (const { name: featName, description, url } of features) {
const detectResult = h('td', {
headers: [idMap['table-col']('Your browser'), idMap['table-row'](featName)].join(' ')
headers: [idMap['table-col']('Your browser'), idMap['table-row'](featName)].join(' ')
}, [buildCellInner('loading')]);

detectWasmFeature(featName).then(supported => {
Expand Down Expand Up @@ -385,7 +385,7 @@

function _loadFeatureDetectModule() {
// Be sure to change the preloads in markdown when updating url.
const module = import('https://cdn.jsdelivr.net/npm/wasm-feature-detect@1.5/dist/esm/index.js');
tomayac marked this conversation as resolved.
Show resolved Hide resolved
const module = import('https://cdn.jsdelivr.net/npm/wasm-feature-detect/dist/esm/index.js');
return (featureName) => module
.then(wasmFeatureDetect => wasmFeatureDetect[featureName]());
}
Expand Down
2 changes: 1 addition & 1 deletion roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The table below aims to track implemented features in popular engines:
</div>
<link rel="preload" href="/features.json" as="fetch">
<script src="/roadmap.js"></script>
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/wasm-feature-detect@1/dist/esm/index.js">
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/wasm-feature-detect/dist/esm/index.js">
tomayac marked this conversation as resolved.
Show resolved Hide resolved
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/@floating-ui/dom@1/+esm">

To detect supported features at runtime from JavaScript, check out the [`wasm-feature-detect` library](https://github.com/GoogleChromeLabs/wasm-feature-detect), which powers the "Your browser" column above.