Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 GameMgr is not defined #84

Merged
merged 4 commits into from
Oct 7, 2019
Merged

Conversation

fa93hws
Copy link
Contributor

@fa93hws fa93hws commented Oct 6, 2019

#83
刚clone没多久,对代码库没有任何了解,因此这个fix很可能不正确

问题似乎是因为new GameMgr();的执行并不能保证在code.js的异步载入之后。
await 似乎是在
f9c2ece#diff-3d6ed586bad3d1920a53b8c92c6f14de
中被移除的

$.pre.map(ext => \`majsoul_plus/extension/scripts/\${ext}/\`).forEach(url => addScript(url));
await Promise.all(
$.pre.map(ext => addScript(\`majsoul_plus/extension/scripts/\${ext}/\`))
);

if ($.hasLauncher) {
addScript(\`majsoul_plus/extension/scripts/\${$.launcher}/\`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await here?

src/extension/manager.ts Outdated Show resolved Hide resolved
@Yesterday17 Yesterday17 merged commit 3e97b3d into MajsoulPlus:master Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants