Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
jio
Commits
b2dd89ff
Commit
b2dd89ff
authored
Jun 11, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zipfilestorage.js: enable compression
parent
9097c251
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
dist/zipfilestorage-with-jszip.js
dist/zipfilestorage-with-jszip.js
+4
-2
src/jio.storage/zipfilestorage.js
src/jio.storage/zipfilestorage.js
+4
-2
No files found.
dist/zipfilestorage-with-jszip.js
View file @
b2dd89ff
This diff is collapsed.
Click to expand it.
src/jio.storage/zipfilestorage.js
View file @
b2dd89ff
/*global jIO, RSVP, Blob, JSZip */
/*global jIO, RSVP, Blob, JSZip */
/*jslint nomen: true*/
/*jslint nomen: true
, indent: 2
*/
/*
/*
* Copyright 2016, Nexedi SA
* Copyright 2016, Nexedi SA
...
@@ -204,7 +204,9 @@
...
@@ -204,7 +204,9 @@
return
loadZip
(
this
)
return
loadZip
(
this
)
.
push
(
function
(
zip
)
{
.
push
(
function
(
zip
)
{
if
(
archive_request
)
{
if
(
archive_request
)
{
return
zip
.
generateAsync
({
type
:
"
blob
"
});
return
zip
.
generateAsync
({
type
:
"
blob
"
,
compression
:
"
DEFLATE
"
});
}
}
if
(
id
!==
""
&&
!
(
zip
.
files
.
hasOwnProperty
(
id
)
&&
zip
.
files
[
id
].
dir
))
{
if
(
id
!==
""
&&
!
(
zip
.
files
.
hasOwnProperty
(
id
)
&&
zip
.
files
[
id
].
dir
))
{
throw
new
jIO
.
util
.
jIOError
(
"
Cannot find document
"
,
404
);
throw
new
jIO
.
util
.
jIOError
(
"
Cannot find document
"
,
404
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment