MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / getPagefindModuleSource

Function getPagefindModuleSource

helpers/pagefind/browser.js:77–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77function getPagefindModuleSource () {
78 return [
79 `import * as pagefindModule from ${ JSON.stringify( pagefindScriptURL ) }`,
80 `globalThis.${ pagefindGlobalKey } = pagefindModule.default || pagefindModule`
81 ].join('\n')
82}
83
84function waitForPagefindGlobal () {
85 return new Promise( ( resolve, reject ) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected