testing out reading pages straight from a cbz file
This commit is contained in:
parent
5d20759dcc
commit
291b1e411f
53 changed files with 10269 additions and 0 deletions
18
lib/zip.js/tests/test7.js
Executable file
18
lib/zip.js/tests/test7.js
Executable file
|
@ -0,0 +1,18 @@
|
|||
var zipFs = new zip.fs.FS();
|
||||
|
||||
function onerror(message) {
|
||||
console.error(message);
|
||||
}
|
||||
|
||||
function logText(text) {
|
||||
console.log(text);
|
||||
console.log("--------------");
|
||||
}
|
||||
|
||||
zip.workerScriptsPath = "../";
|
||||
zipFs.importHttpContent("lorem.zip", false, function() {
|
||||
var firstEntry = zipFs.root.children[0];
|
||||
firstEntry.getText(function(data) {
|
||||
logText(data);
|
||||
});
|
||||
}, onerror);
|
Loading…
Add table
Add a link
Reference in a new issue