From 60a8023303e1d72f834f754716beec1a3dee40a6 Mon Sep 17 00:00:00 2001 From: Jack Edwards Date: Tue, 27 Aug 2024 21:43:00 -0500 Subject: [PATCH] Stop deactivating the service worker --- Crypter.Web/Shared/Transfer/DownloadFileTransfer.razor.cs | 1 - Crypter.Web/Shared/Transfer/DownloadMessageTransfer.razor.cs | 2 -- Crypter.Web/Shared/Transfer/UploadFileTransfer.razor.cs | 2 -- Crypter.Web/Shared/Transfer/UploadMessageTransfer.razor.cs | 2 -- 4 files changed, 7 deletions(-) diff --git a/Crypter.Web/Shared/Transfer/DownloadFileTransfer.razor.cs b/Crypter.Web/Shared/Transfer/DownloadFileTransfer.razor.cs index 8814c9469..accb47b8c 100644 --- a/Crypter.Web/Shared/Transfer/DownloadFileTransfer.razor.cs +++ b/Crypter.Web/Shared/Transfer/DownloadFileTransfer.razor.cs @@ -117,7 +117,6 @@ await decryptionResponse await FileSaverService.SaveFileAsync(decryptionStream, _fileName, _contentType, null); DecryptionComplete = true; await decryptionStream.DisposeAsync(); - await FileSaverService.DeactivateServiceWorkerAsync(); }) .DoLeftOrNeitherAsync( HandleDownloadError, diff --git a/Crypter.Web/Shared/Transfer/DownloadMessageTransfer.razor.cs b/Crypter.Web/Shared/Transfer/DownloadMessageTransfer.razor.cs index 35794bc35..fe96b6974 100644 --- a/Crypter.Web/Shared/Transfer/DownloadMessageTransfer.razor.cs +++ b/Crypter.Web/Shared/Transfer/DownloadMessageTransfer.razor.cs @@ -70,8 +70,6 @@ private async Task OnDecryptClickedAsync(MouseEventArgs _) ErrorMessage = "Download handler not assigned."; return; } - - await FileSaverService.DeactivateServiceWorkerAsync(); DecryptionInProgress = true; diff --git a/Crypter.Web/Shared/Transfer/UploadFileTransfer.razor.cs b/Crypter.Web/Shared/Transfer/UploadFileTransfer.razor.cs index 54bd17d33..7991989ed 100644 --- a/Crypter.Web/Shared/Transfer/UploadFileTransfer.razor.cs +++ b/Crypter.Web/Shared/Transfer/UploadFileTransfer.razor.cs @@ -103,8 +103,6 @@ protected async Task OnEncryptClicked() EncryptionInProgress = true; ErrorMessage = string.Empty; - - await FileSaverService.DeactivateServiceWorkerAsync(); await SetProgressMessageAsync("Encrypting file"); diff --git a/Crypter.Web/Shared/Transfer/UploadMessageTransfer.razor.cs b/Crypter.Web/Shared/Transfer/UploadMessageTransfer.razor.cs index 861b214d0..bc5a4f79e 100644 --- a/Crypter.Web/Shared/Transfer/UploadMessageTransfer.razor.cs +++ b/Crypter.Web/Shared/Transfer/UploadMessageTransfer.razor.cs @@ -37,8 +37,6 @@ public partial class UploadMessageTransfer : IDisposable protected async Task OnEncryptClicked() { - await FileSaverService.DeactivateServiceWorkerAsync(); - EncryptionInProgress = true; ErrorMessage = string.Empty;