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.