fix(test): speculative attempt to fix trace viewer test flakiness (#15330)

This commit is contained in:
Pavel Feldman 2022-07-03 07:30:04 -08:00 committed by GitHub
parent 71dcad3b2e
commit ba93da0686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,7 @@ import '@web/common.css';
(async () => {
applyTheme();
if (window.location.protocol !== 'file:') {
await new Promise(f => setTimeout(f, 100));
navigator.serviceWorker.register('sw.bundle.js');
if (!navigator.serviceWorker.controller) {
await new Promise<void>(f => {