Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Add blob.js only on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
oterral committed Nov 14, 2014
1 parent 1036413 commit 0718d2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ prd/robots.txt: scripts/robots.mako-dot-txt .build-artefacts/last-deploy-target
mkdir -p $(dir $@)
${PYTHON_CMD} .build-artefacts/python-venv/bin/mako-render --var "deploy_target=$(DEPLOY_TARGET)" $< > $@

prd/lib/: src/lib/d3-3.3.1.min.js src/lib/IE9Fixes.js src/lib/jQuery.XDomainRequest.js
prd/lib/: src/lib/blob.min.js src/lib/d3-3.3.1.min.js src/lib/IE9Fixes.js src/lib/jQuery.XDomainRequest.js
mkdir -p $@
cp $^ $@

prd/lib/build.js: src/lib/jquery-2.0.3.min.js src/lib/bootstrap-3.0.0.min.js src/lib/typeahead-0.9.3.min.js src/lib/angular-1.2.9.min.js src/lib/proj4js-compressed.js src/lib/EPSG21781.js src/lib/EPSG2056.js src/lib/EPSG32631.js src/lib/EPSG32632.js src/lib/ol.js src/lib/angular-animate-1.2.9.min.js src/lib/angular-translate-1.1.1.min.js src/lib/angular-translate-loader-static-files-0.1.5.min.js src/lib/blob.min.js src/lib/fastclick.min.js src/lib/localforage.min.js src/lib/filesaver.min.js .build-artefacts/app.js
prd/lib/build.js: src/lib/jquery-2.0.3.min.js src/lib/bootstrap-3.0.0.min.js src/lib/typeahead-0.9.3.min.js src/lib/angular-1.2.9.min.js src/lib/proj4js-compressed.js src/lib/EPSG21781.js src/lib/EPSG2056.js src/lib/EPSG32631.js src/lib/EPSG32632.js src/lib/ol.js src/lib/angular-animate-1.2.9.min.js src/lib/angular-translate-1.1.1.min.js src/lib/angular-translate-loader-static-files-0.1.5.min.js src/lib/fastclick.min.js src/lib/localforage.min.js src/lib/filesaver.min.js .build-artefacts/app.js
mkdir -p $(dir $@)
cat $^ | sed 's/^\/\/[#,@] sourceMappingURL=.*//' > $@

Expand Down
9 changes: 8 additions & 1 deletion src/index.mako.html
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,14 @@ <h3 class="popover-title">
</div>
</div>

% if device == 'desktop':
% if mode == 'prod':
<script src="${versionslashed}lib/blob.min.js"></script>
% else:
<script src="lib/blob.js"></script>
% endif
% endif

% if mode == 'prod':
<script src="${versionslashed}lib/build.js"></script>
<!-- For <= IE9, we load it explicitely as XDomain does not support
Expand Down Expand Up @@ -629,7 +637,6 @@ <h3 class="popover-title">
<script src="lib/EPSG32632.js"></script>
<script src="lib/fastclick.js"></script>
<script src="lib/localforage.js"></script>
<script src="lib/blob.js"></script>
<script src="lib/filesaver.js"></script>

<!-- Use Closure to load the application scripts -->
Expand Down

0 comments on commit 0718d2b

Please sign in to comment.