mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
Add messaging & messaging-internal libraries (#15711)
This commit is contained in:
5
libs/messaging/src/is-external-message.ts
Normal file
5
libs/messaging/src/is-external-message.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const EXTERNAL_SOURCE_TAG = Symbol("externalSource");
|
||||
|
||||
export const isExternalMessage = (message: Record<PropertyKey, unknown>) => {
|
||||
return message?.[EXTERNAL_SOURCE_TAG] === true;
|
||||
};
|
||||
Reference in New Issue
Block a user