MCPcopy
hub / github.com/mailvelope/mailvelope / isAttached

Function isAttached

src/content-scripts/main.js:342–354  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

340}
341
342export function isAttached(element) {
343 if (!element) {
344 return false;
345 }
346 const status = element.dataset[FRAME_STATUS];
347 switch (status) {
348 case FRAME_ATTACHED:
349 case FRAME_DETACHED:
350 return true;
351 default:
352 return false;
353 }
354}
355
356//# sourceURL=cs-mailvelope.js

Callers 3

attachEditorBtnMethod · 0.90
attachExtractFrameFunction · 0.85
attachEncryptFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected