From b7607817ab94361b14e9d565775bd5da76d2b115 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Sun, 29 Aug 2010 20:17:06 -0400 Subject: calculate useSampledata by protocol. --- install/static/index.xhtml | 9 --------- install/static/ipa.js | 2 ++ install/static/sampledata/develop.js | 3 --- 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 install/static/sampledata/develop.js (limited to 'install') diff --git a/install/static/index.xhtml b/install/static/index.xhtml index 489f192b..8e231f45 100644 --- a/install/static/index.xhtml +++ b/install/static/index.xhtml @@ -7,17 +7,8 @@ - - - - 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) { diff --git a/install/static/sampledata/develop.js b/install/static/sampledata/develop.js deleted file mode 100644 index 5c5275b5..00000000 --- a/install/static/sampledata/develop.js +++ /dev/null @@ -1,3 +0,0 @@ -//This should not be packaged up, and so we should only get a true value when working inside the file system -useSampleData = true; - -- cgit