Skip to content

Commit

Permalink
base64 encode fallback to plain text
Browse files Browse the repository at this point in the history
  • Loading branch information
up209d committed Dec 22, 2017
1 parent 287756b commit 0a97e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unpacked/content.js
Expand Up @@ -135,6 +135,9 @@ function saveAllResources(e) {
console.log('Download List: ', toDownload)

if (document.getElementById('check-zip').checked) {
// No need to turn off notification for only one zip file
chrome.downloads.setShelfEnabled(true);

downloadZipFile(toDownload, allDone);
} else {
downloadListWithThread(toDownload, downloadThread, allDone);
Expand Down Expand Up @@ -370,9 +373,6 @@ function downloadURLs(urls, callback) {
}

function downloadZipFile(toDownload, callback) {
// No need to hide download for only one zip file
chrome.downloads.setShelfEnabled = true;

if (zip) {
zip.workerScriptsPath = "zip/";
getAllToDownloadContent(toDownload, function (result) {
Expand Down

0 comments on commit 0a97e30

Please sign in to comment.