mirror of
https://github.com/k1tbyte/Wand-Enhancer.git
synced 2026-08-28 22:01:17 +00:00
18 lines
431 B
JavaScript
Vendored
18 lines
431 B
JavaScript
Vendored
import { isRecord } from "../installed-apps-sync/runtime.js"
|
|
|
|
const WAND_QR_RENDERER_EXPORT = "mo"
|
|
|
|
export function resolveQrRenderer(webpackRequire) {
|
|
for (const record of Object.values(webpackRequire?.c || {})) {
|
|
const exports = record?.exports
|
|
if (
|
|
isRecord(exports) &&
|
|
typeof exports[WAND_QR_RENDERER_EXPORT] === "function"
|
|
) {
|
|
return exports[WAND_QR_RENDERER_EXPORT]
|
|
}
|
|
}
|
|
|
|
return null
|
|
}
|