MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / reifyValueOpener

Function reifyValueOpener

src/background/utils/values.js:94–103  ·  view source on GitHub ↗
(ids, documentId)

Source from the content-addressed store, hash-verified

92
93/** Moves values of a pre-rendered page identified by documentId to frameId:0 */
94export function reifyValueOpener(ids, documentId) {
95 for (const id of ids) {
96 openers[id]::forEachValue(frames => {
97 if (documentId in frames) {
98 frames[0] = frames[documentId];
99 delete frames[documentId];
100 }
101 });
102 }
103}
104
105function commit(flushNow) {
106 cachedStorageApi.set(toCommit, flushNow);

Callers 1

RunFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected