chore: add Prettier (#5825)

This commit is contained in:
Jack Franklin
2020-05-07 11:54:55 +01:00
committed by GitHub
parent ae576aff61
commit 4fdb1e3cab
109 changed files with 12166 additions and 7718 deletions

View File

@@ -4,13 +4,13 @@ function workerFunction() {
return 'worker function result';
}
self.addEventListener('message', event => {
self.addEventListener('message', (event) => {
console.log('got this data: ' + event.data);
});
(async function() {
(async function () {
while (true) {
self.postMessage(workerFunction.toString());
await new Promise(x => setTimeout(x, 100));
await new Promise((x) => setTimeout(x, 100));
}
})();
})();