提交 2569beb3 编写于 作者: C chenshuai2144

test: fix test error

上级 59e06434
......@@ -55,12 +55,10 @@ addEventListener('message', event => {
const message = event.data;
if (replyPort && message && message.type === 'skip-waiting') {
event.waitUntil(
self
.skipWaiting()
.then(
() => replyPort.postMessage({ error: null }),
error => replyPort.postMessage({ error }),
),
self.skipWaiting().then(
() => replyPort.postMessage({ error: null }),
error => replyPort.postMessage({ error }),
),
);
}
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册