fix: temporary fix
This commit is contained in:
parent
63892a495a
commit
3aaf8cbd73
|
@ -1,7 +1,7 @@
|
||||||
/* eslint-disable no-extend-native */
|
/* eslint-disable no-extend-native */
|
||||||
|
|
||||||
import scoreinfo from './scoreinfo'
|
import scoreinfo from './scoreinfo'
|
||||||
import { onPackLoad, loadAllPacks, getObfuscationCtx, OBFUSCATED_REG } from './webpack-hook'
|
import { onPackLoad, getObfuscationCtx, OBFUSCATED_REG } from './webpack-hook'
|
||||||
|
|
||||||
type FileType = 'img' | 'mp3' | 'midi'
|
type FileType = 'img' | 'mp3' | 'midi'
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ enum PACK_HINT {
|
||||||
*/
|
*/
|
||||||
const magicHookConstr = async (type: FileType) => {
|
const magicHookConstr = async (type: FileType) => {
|
||||||
// request pack
|
// request pack
|
||||||
await loadAllPacks()
|
// await loadAllPacks()
|
||||||
|
|
||||||
return new Promise<string>((resolve) => {
|
return new Promise<string>((resolve) => {
|
||||||
onPackLoad((pack) => {
|
onPackLoad((pack) => {
|
||||||
|
|
Loading…
Reference in New Issue