Skip to content

Commit 14f3006

Browse files
authored
Fixed main.js to follow typings
1 parent 7f641d7 commit 14f3006

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class AcodePlugin {
1313

1414
if (window.acode) {
1515
const acodePlugin = new AcodePlugin();
16-
acode.setPluginInit(plugin.id, (baseUrl, $page, { cacheFileUrl, cacheFile }) => {
16+
acode.setPluginInit(plugin.id, async (baseUrl, $page, { cacheFileUrl, cacheFile }) => {
1717
if (!baseUrl.endsWith('/')) {
1818
baseUrl += '/';
1919
}
2020
acodePlugin.baseUrl = baseUrl;
21-
acodePlugin.init($page, cacheFile, cacheFileUrl);
21+
await acodePlugin.init($page, cacheFile, cacheFileUrl);
2222
});
2323
acode.setPluginUnmount(plugin.id, () => {
2424
acodePlugin.destroy();
2525
});
26-
}
26+
}

0 commit comments

Comments
 (0)