From f8aad11866f9a9fa2ab1af3343585510ca6bf64b Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 8 Jan 2021 14:07:01 +0200 Subject: [PATCH] refactor(service-worker): remove work-around for Chrome code highlighting bug (#40234) Chrome debugger code highlighting bug [659515][1] has been fixed, so we can remove the work-around. (See #38332 for more details on the work-around.) [1]: https://bugs.chromium.org/p/chromium/issues/detail?id=659515 PR Close #40234 --- packages/service-worker/worker/src/driver.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/service-worker/worker/src/driver.ts b/packages/service-worker/worker/src/driver.ts index 9838186ccf..94c02baeee 100644 --- a/packages/service-worker/worker/src/driver.ts +++ b/packages/service-worker/worker/src/driver.ts @@ -720,12 +720,7 @@ export class Driver implements Debuggable, UpdateSource { private async deleteAllCaches(): Promise { const cacheNames = await this.scope.caches.keys(); const ownCacheNames = - cacheNames - // The Chrome debugger is not able to render the syntax properly when the - // code contains backticks. This is a known issue in Chrome and they have an - // open [issue](https://bugs.chromium.org/p/chromium/issues/detail?id=659515) for that. - // As a work-around for the time being, we can use \\ ` at the end of the line. - .filter(name => name.startsWith(`${this.adapter.cacheNamePrefix}:`)); // ` + cacheNames.filter(name => name.startsWith(`${this.adapter.cacheNamePrefix}:`)); await Promise.all(ownCacheNames.map(name => this.scope.caches.delete(name))); }