From 01f971aaa2e67315993e66959ffef269ed53e42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mime=20=C4=8Cuvalo?= Date: Thu, 9 Feb 2012 16:09:45 +0100 Subject: [PATCH] crap. remove hard links to fireftp, make imports relative so that firessh works too --- rsakey.js | 2 +- sign_ssh_data_worker.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rsakey.js b/rsakey.js index 1bf0d90..90eb832 100644 --- a/rsakey.js +++ b/rsakey.js @@ -75,7 +75,7 @@ paramikojs.RSAKey.prototype = { var digest = new crypto.hash.SHA(data).digest(); var pkcs1imified = this._pkcs1imify(digest); - var worker = new Worker('chrome://fireftp/content/js/connection/paramikojs/sign_ssh_data_worker.js'); + var worker = new Worker('./js/connection/paramikojs/sign_ssh_data_worker.js'); worker.onmessage = function(event) { var m = new paramikojs.Message(); m.add_string('ssh-rsa'); diff --git a/sign_ssh_data_worker.js b/sign_ssh_data_worker.js index 31bd1ba..8f893fe 100644 --- a/sign_ssh_data_worker.js +++ b/sign_ssh_data_worker.js @@ -1,9 +1,9 @@ -importScripts('chrome://fireftp/content/js/connection/paramikojs/crypto/crypto.js', - 'chrome://fireftp/content/js/connection/paramikojs/crypto/PublicKey/RSA.js', - 'chrome://fireftp/content/js/connection/paramikojs/common.js', - 'chrome://fireftp/content/js/connection/paramikojs/python_shim.js', - 'chrome://fireftp/content/js/connection/paramikojs/BigInteger.js', - 'chrome://fireftp/content/js/connection/paramikojs/util.js'); +importScripts('crypto/crypto.js', + 'crypto/PublicKey/RSA.js', + 'common.js', + 'python_shim.js', + 'BigInteger.js', + 'util.js'); onmessage = function(event) { var rsa = new crypto.publicKey.RSA().construct(new BigInteger(event.data.n, 10),