Skip to content

Commit 380333e

Browse files
committed
refactor: 增加 await 关键字
1 parent 80a50e2 commit 380333e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/components/BootstrapBlazor.Dom2Image/wwwroot

src/components/BootstrapBlazor.Dom2Image/wwwroot/dom2image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function downloadAsync(selector, filename, format, backgroundColor,
2424
const el = document.querySelector(selector);
2525
if (el) {
2626
const result = await snapdom(el, options);
27-
data = result.download({
27+
await result.download({
2828
format,
2929
filename,
3030
backgroundColor

0 commit comments

Comments
 (0)