Page MenuHomePhorge

D11353.1765293822.diff
No OneTemporary

Size
755 B
Referenced Files
None
Subscribers
None

D11353.1765293822.diff

diff --git a/web/shared-worker/worker/identity-client.js b/web/shared-worker/worker/identity-client.js
--- a/web/shared-worker/worker/identity-client.js
+++ b/web/shared-worker/worker/identity-client.js
@@ -41,8 +41,9 @@
if (message.type === workerRequestMessageTypes.CALL_IDENTITY_CLIENT_METHOD) {
// Flow doesn't allow us to access methods like this (it needs an index
// signature declaration in the object type)
- // $FlowFixMe
- const method = identityClient[message.method];
+ const method: (...$ReadOnlyArray<mixed>) => mixed = (identityClient: any)[
+ message.method
+ ];
if (typeof method !== 'function') {
throw new Error(
`Couldn't find identity client method with name '${message.method}'`,

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 9, 3:23 PM (9 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5854990
Default Alt Text
D11353.1765293822.diff (755 B)

Event Timeline