Name Description Size Coverage
constants.mjs 682 -
detect-user-session-start.mjs sendEventOrAddListener - Notify immediately if the page is already visible, or else set up a listener for when visibility changes. This is needed for accurate session tracking for telemetry, because tabs are pre-loaded. 2861 -
init-store.mjs A higher-order function which returns a reducer that, on MERGE_STORE action, will return the action.data object merged into the previous state. For all other actions, it merely calls mainReducer. Because we want this to merge the entire state object, it's written as a higher order function which takes the main reducer (itself often a call to combineReducers) as a parameter. @param {function} mainReducer reducer to call if action != MERGE_STORE_ACTION @return {function} a reducer that, on MERGE_STORE_ACTION action, will return the action.data object merged into the previous state, and the result of calling mainReducer otherwise. 4751 -
link-menu-options.mjs List of functions that return items that can be included as menu options in a LinkMenu. All functions take the site as the first parameter, and optionally the index of the site. 13625 -
perf-service.mjs Calls the underlying mark() method on the appropriate Window.performance object to add a mark with the given name to the appropriate performance timeline. @param {string} name the name to give the current mark @return {void} 3426 -
screenshot-utils.mjs List of helper functions for screenshot-based images. There are two kinds of images: 1. Remote Image: This is the image from the main process and it refers to the image in the React props. This can either be an object with the `data` and `path` properties, if it is a blob, or a string, if it is a normal image. 2. Local Image: This is the image object in the content process and it refers to the image *object* in the React component's state. All local image objects have the `url` property, and an additional property `path`, if they are blobs. 2182 -
selectLayoutRender.mjs This function fills spoc positions on a per placement basis with available spocs. It does this by looping through each position for a placement and replacing a rec with a spoc. If it runs out of spocs or positions, it stops. If it sees the same placement again, it remembers the previous spoc index, and continues. If it sees a blocked spoc, it skips that position leaving in a regular story. 11636 -
utils.jsx 8762 -