We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65699d9 commit bdd6c83Copy full SHA for bdd6c83
webiojs/src/handlers/pin.ts
@@ -74,7 +74,7 @@ export class PinHandler implements CommandHandler {
74
...files.map((file: File) => serialize_file(file, 'value'))
75
], {type: 'application/octet-stream'}),
76
(loaded: number, total: number) => {
77
- toast.toastElement.innerText = `⏳${t("file_uploading")} ${(loaded / total).toFixed(2)}%`;
+ toast.toastElement.innerText = `⏳${t("file_uploading")} ${((loaded / total)*100).toFixed(2)}%`;
78
if (total - loaded < 100) toast.hideToast();
79
}
80
);
0 commit comments