diff options
| author | RblSb <msrblsb@gmail.com> | 2025-02-09 04:25:18 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-02-09 04:25:18 +0300 |
| commit | 82a6c65d46e2583883b1b01d706145386308d19e (patch) | |
| tree | 64742b586df7bc1ed46941cc6da9097ee2c35e90 /src/client | |
| parent | d86f0c30e1726a56e670955c3b995945c1daf834 (diff) | |
Improve cache limit handling
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/Main.hx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx index 5c4b28d..72a619a 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -327,7 +327,8 @@ class Main { if (url.startsWith("/")) { final host = Browser.location.hostname; final port = Browser.location.port; - url = '$protocol//$host:$port$url'; + final colonPort = port.length > 0 ? ':$port' : port; + url = '$protocol//$host$colonPort$url'; } if (!url.startsWith("http")) url = '$protocol//$url'; @@ -667,6 +668,9 @@ class Main { '$caching $name'; case Downloading: Lang.get("downloading"); case Uploading: Lang.get("uploading"); + case Canceled: + hideDynamicChin(); + return; } final percent = (data.ratio * 100).toFixed(1); var text = '$text...'; |
