Skip to content

Commit

Permalink
Merge pull request #721 from Crypter-File-Transfer/stop-toggling-serv…
Browse files Browse the repository at this point in the history
…ice-worker

Stop deactivating the service worker
  • Loading branch information
Jack-Edwards authored Aug 30, 2024
2 parents 57a2f17 + b0d8e4e commit b737898
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion Crypter.Web/Shared/Transfer/DownloadFileTransfer.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ await decryptionResponse
await FileSaverService.SaveFileAsync(decryptionStream, _fileName, _contentType, null);
DecryptionComplete = true;
await decryptionStream.DisposeAsync();
await FileSaverService.DeactivateServiceWorkerAsync();
})
.DoLeftOrNeitherAsync(
HandleDownloadError,
Expand Down
2 changes: 0 additions & 2 deletions Crypter.Web/Shared/Transfer/DownloadMessageTransfer.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ private async Task OnDecryptClickedAsync(MouseEventArgs _)
ErrorMessage = "Download handler not assigned.";
return;
}

await FileSaverService.DeactivateServiceWorkerAsync();

DecryptionInProgress = true;

Expand Down
2 changes: 0 additions & 2 deletions Crypter.Web/Shared/Transfer/UploadFileTransfer.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ protected async Task OnEncryptClicked()

EncryptionInProgress = true;
ErrorMessage = string.Empty;

await FileSaverService.DeactivateServiceWorkerAsync();

await SetProgressMessageAsync("Encrypting file");

Expand Down
2 changes: 0 additions & 2 deletions Crypter.Web/Shared/Transfer/UploadMessageTransfer.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public partial class UploadMessageTransfer : IDisposable

protected async Task OnEncryptClicked()
{
await FileSaverService.DeactivateServiceWorkerAsync();

EncryptionInProgress = true;
ErrorMessage = string.Empty;

Expand Down

0 comments on commit b737898

Please sign in to comment.