Skip to content

Files

Latest commit

879a870 · Jan 6, 2023

History

History
11 lines (6 loc) · 1.1 KB

beacon.md

File metadata and controls

11 lines (6 loc) · 1.1 KB

This code appears to define an immediately invoked function expression (IIFE) that is passed an anonymous function as an argument. The anonymous function takes a single parameter, e.

Inside the function, an empty object named t is defined. Then, a function named n is defined. n takes a single parameter, r.

The function n has several conditional statements and function calls inside it. It appears to be a module loader of some sort, possibly for loading JavaScript modules.

There is only one entry point to the module, at the index 859. The code at this index defines an anonymous function and immediately invokes it.

This anonymous function appears to create an iframe element and set its src attribute to a URL provided by the chrome.runtime.getURL function. The iframe element is given several attributes and the style.cssText property is set to a string of CSS styles. The iframe is then appended to the document.body.

An event listener is then set up to listen for messages from the chrome.runtime and to close the iframe if a message of type CLOSE_BEACON_IFRAME is received. Another event listener is set up to