From 7a774b6813804c945846ef9837161a523dff77c8 Mon Sep 17 00:00:00 2001 From: ausiv4 Date: Tue, 4 Aug 2009 04:07:21 +0000 Subject: I've cleaned up the script path code so that it now packs properly. The path to the srp script can be found in the global variable srpPath. If the server is using raw javascript files, this should be set to "srp.js". If the server is using packed files, this should be set to "srp.min.js". --- javascript/jsPacker/build-pack.sh | 2 -- 1 file changed, 2 deletions(-) (limited to 'javascript/jsPacker/build-pack.sh') diff --git a/javascript/jsPacker/build-pack.sh b/javascript/jsPacker/build-pack.sh index 29ffa92..904b2ee 100644 --- a/javascript/jsPacker/build-pack.sh +++ b/javascript/jsPacker/build-pack.sh @@ -2,5 +2,3 @@ cat ../SHA256.js ../prng4.js ../rng.js ../jsbn.js ../jsbn2.js ../srp.js > utils.js perl jsPacker.pl -fsq -e62 -i utils.js -o srp.min.js rm utils.js - -echo "var srpPath = (function(){\nvar scr=document.getElementsByTagName('script');\nreturn scr[scr.length-1].getAttribute(\"src\");\n})();" >> srp.min.js -- cgit v1.2.3