mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 06:22:03 -08:00
12 lines
314 B
JavaScript
12 lines
314 B
JavaScript
async function main() {
|
|
window.ws = new WebSocket('ws://localhost:' + window.location.port + '/ws');
|
|
window.ws.addEventListener('message', message => {});
|
|
|
|
fetch('fetch-request-a.js');
|
|
window.top.fetchSecond = () => {
|
|
// Do not return the promise here.
|
|
fetch('fetch-request-b.js');
|
|
};
|
|
}
|
|
|
|
main();
|