Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
463 B
17 lines
463 B
"use strict";
|
|
|
|
var cacheLoader = require('../cacheLoader');
|
|
|
|
module.exports = cacheLoader(function (bundle) {
|
|
return fetch(bundle).then(function (res) {
|
|
if (WebAssembly.instantiateStreaming) {
|
|
return WebAssembly.instantiateStreaming(res);
|
|
} else {
|
|
return res.arrayBuffer().then(function (data) {
|
|
return WebAssembly.instantiate(data);
|
|
});
|
|
}
|
|
}).then(function (wasmModule) {
|
|
return wasmModule.instance.exports;
|
|
});
|
|
}); |