Skip to content

Commit 01e2dfa

Browse files
manually revert
1 parent 14f0b1d commit 01e2dfa

File tree

4 files changed

+28
-32
lines changed

4 files changed

+28
-32
lines changed

frontend/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ dist-ssr
2929
/blob-report/
3030
/playwright/.cache/
3131
tsconfig.tsbuildinfo
32-
/lighthouse-report/

frontend/public/mockServiceWorker.js

+4-13
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* - Please do NOT serve this file on production.
99
*/
1010

11-
const PACKAGE_VERSION = '2.6.0'
12-
const INTEGRITY_CHECKSUM = '07a8241b182f8a246a7cd39894799a9e'
11+
const PACKAGE_VERSION = '2.4.9'
12+
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
1313
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
1414
const activeClientIds = new Set()
1515

@@ -62,12 +62,7 @@ self.addEventListener('message', async function (event) {
6262

6363
sendToClient(client, {
6464
type: 'MOCKING_ENABLED',
65-
payload: {
66-
client: {
67-
id: client.id,
68-
frameType: client.frameType,
69-
},
70-
},
65+
payload: true,
7166
})
7267
break
7368
}
@@ -160,10 +155,6 @@ async function handleRequest(event, requestId) {
160155
async function resolveMainClient(event) {
161156
const client = await self.clients.get(event.clientId)
162157

163-
if (activeClientIds.has(event.clientId)) {
164-
return client
165-
}
166-
167158
if (client?.frameType === 'top-level') {
168159
return client
169160
}
@@ -290,4 +281,4 @@ async function respondWithMock(response) {
290281
})
291282

292283
return mockedResponse
293-
}
284+
}

frontend/src/assets/collapse.svg

+12-8
Loading

frontend/src/assets/expand.svg

+12-10
Loading

0 commit comments

Comments
 (0)