Skip to content

Commit

Permalink
Added feature is.operaMini
Browse files Browse the repository at this point in the history
  • Loading branch information
ironmaniiith committed May 24, 2018
1 parent 360b886 commit bf6534e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions is.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,15 @@
// opera method does not support 'all' and 'any' interfaces
is.opera.api = ['not'];

// is current browser opera mini?
// parameter is optional
is.operaMini = function(range) {
var match = userAgent.match(/opera mini\/(\d+)/);
return match !== null && compareVersion(match[1], range);
};
// operaMini method does not support 'all' and 'any' interfaces
is.operaMini.api = ['not'];

// is current browser phantomjs?
// parameter is optional
is.phantom = function(range) {
Expand Down

0 comments on commit bf6534e

Please sign in to comment.