summaryrefslogtreecommitdiff
path: root/javascript/srp.js
diff options
context:
space:
mode:
authorausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-04 04:07:21 +0000
committerausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-04 04:07:21 +0000
commit7a774b6813804c945846ef9837161a523dff77c8 (patch)
treed7431760993f2b7237f8758ee3119ecacf589d43 /javascript/srp.js
parent0f02618168da426ffe47161e72b7f8e3541ce892 (diff)
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".
Diffstat (limited to 'javascript/srp.js')
-rw-r--r--javascript/srp.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript/srp.js b/javascript/srp.js
index 2a8f6e5..b0b1e3e 100644
--- a/javascript/srp.js
+++ b/javascript/srp.js
@@ -206,3 +206,4 @@ function SRP(username, password, ser, base_url)
return (typeof(window[variable]) == "undefined")? false: true;
};
};
+var srpPath = document.getElementsByTagName('script')[document.getElementsByTagName('script').length-1].getAttribute("src");