This commit is contained in:
Xmader 2020-10-19 08:00:20 -04:00
parent 1b116afdda
commit 3e9cc0a417

View file

@ -14,7 +14,7 @@ const getApiUrl = (type: FileType, index: number): string => {
/** /**
* Retrieve (webpack_require) a module from the page's webpack package * Retrieve (webpack_require) a module from the page's webpack package
* *
* I know this is super hacking. * I know this is super hacky.
*/ */
const webpackHook = (moduleId: string, globalWebpackJson = window['webpackJsonpmusescore']) => { const webpackHook = (moduleId: string, globalWebpackJson = window['webpackJsonpmusescore']) => {
const pack = globalWebpackJson.find(x => x[1][moduleId]) const pack = globalWebpackJson.find(x => x[1][moduleId])