Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Jul 15, 2014
2 parents 241099b + 1580c78 commit f6d3e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ You can easily extend it, e.g. `android`, `iphone`, etc.

## CDN - [jsDelivr](http://www.jsdelivr.com/#!mobile-detect.js)

<script src="//cdn.jsdelivr.net/mobile-detect.js/0.2.0/mobile-detect.min.js"></script>
<script src="//cdn.jsdelivr.net/mobile-detect.js/0.3.0/mobile-detect.min.js"></script>

# Alternatives / Infos

Expand Down
5 changes: 5 additions & 0 deletions generate/mobile-detect.template.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*global module:false*/
/*global define:false*/

(function (exports, undefined) {
'use strict';
Expand Down Expand Up @@ -548,6 +549,10 @@
data.isPhoneSized = function () {};
module.exports = data;

} else if (typeof define === 'function' && define.amd) {

define(function () { return data; });

} else if (typeof window !== 'undefined') {

data.isPhoneSized = function (maxPhoneWidth) {
Expand Down

0 comments on commit f6d3e2f

Please sign in to comment.