summaryrefslogtreecommitdiffstats
path: root/install/static/ipa.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-08-29 20:17:06 -0400
committerAdam Young <ayoung@redhat.com>2010-08-30 17:42:48 -0400
commitb7607817ab94361b14e9d565775bd5da76d2b115 (patch)
tree1f3ee583a511964163ea4d67e21e15acafe35bcb /install/static/ipa.js
parent1e9015a0a05d795b117e9980faf66bb310ec4fd8 (diff)
downloadfreeipa.git-b7607817ab94361b14e9d565775bd5da76d2b115.tar.gz
freeipa.git-b7607817ab94361b14e9d565775bd5da76d2b115.tar.xz
freeipa.git-b7607817ab94361b14e9d565775bd5da76d2b115.zip
calculate useSampledata by protocol.
Diffstat (limited to 'install/static/ipa.js')
-rw-r--r--install/static/ipa.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/static/ipa.js b/install/static/ipa.js
index fd93c1a3..63101a71 100644
--- a/install/static/ipa.js
+++ b/install/static/ipa.js
@@ -35,6 +35,8 @@ var _ipa_init_on_win_callback = null;
var qs;
+var useSampleData = (window.location.protocol == "file:");
+
function ipa_init(url, on_win)
{