From 19af90a27fb49f470796b4ba89211be3be75ee98 Mon Sep 17 00:00:00 2001 From: codedread Date: Sun, 19 Feb 2017 09:49:06 -0800 Subject: [PATCH] Move all archive-related files into a subdirectory called archive --- archive.js => archive/archive.js | 2 +- rarvm.js => archive/rarvm.js | 0 unrar.js => archive/unrar.js | 4 ++-- untar.js => archive/untar.js | 2 +- unzip.js => archive/unzip.js | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) rename archive.js => archive/archive.js (99%) rename rarvm.js => archive/rarvm.js (100%) rename unrar.js => archive/unrar.js (99%) rename untar.js => archive/untar.js (99%) rename unzip.js => archive/unzip.js (99%) diff --git a/archive.js b/archive/archive.js similarity index 99% rename from archive.js rename to archive/archive.js index bc2ab78..5877c18 100644 --- a/archive.js +++ b/archive/archive.js @@ -203,7 +203,7 @@ bitjs.archive.Unarchiver = function(arrayBuffer, opt_pathToBitJS) { * @type {string} * @private */ - this.pathToBitJS_ = opt_pathToBitJS || ''; + this.pathToBitJS_ = opt_pathToBitJS || '/'; /** * A map from event type to an array of listeners. diff --git a/rarvm.js b/archive/rarvm.js similarity index 100% rename from rarvm.js rename to archive/rarvm.js diff --git a/unrar.js b/archive/unrar.js similarity index 99% rename from unrar.js rename to archive/unrar.js index adbb9d2..0d85301 100644 --- a/unrar.js +++ b/archive/unrar.js @@ -8,8 +8,8 @@ */ // This file expects to be invoked as a Worker (see onmessage below). -importScripts('io/bitstream.js'); -importScripts('io/bytebuffer.js'); +importScripts('../io/bitstream.js'); +importScripts('../io/bytebuffer.js'); importScripts('archive.js'); importScripts('rarvm.js'); diff --git a/untar.js b/archive/untar.js similarity index 99% rename from untar.js rename to archive/untar.js index fb0c3b6..1116d0b 100644 --- a/untar.js +++ b/archive/untar.js @@ -11,7 +11,7 @@ */ // This file expects to be invoked as a Worker (see onmessage below). -importScripts('io/bytestream.js'); +importScripts('../io/bytestream.js'); importScripts('archive.js'); // Progress variables. diff --git a/unzip.js b/archive/unzip.js similarity index 99% rename from unzip.js rename to archive/unzip.js index 8dac28d..3349faf 100644 --- a/unzip.js +++ b/archive/unzip.js @@ -13,9 +13,9 @@ */ // This file expects to be invoked as a Worker (see onmessage below). -importScripts('io/bitstream.js'); -importScripts('io/bytebuffer.js'); -importScripts('io/bytestream.js'); +importScripts('../io/bitstream.js'); +importScripts('../io/bytebuffer.js'); +importScripts('../io/bytestream.js'); importScripts('archive.js'); // Progress variables.