You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							560 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							560 B
						
					
					
				'use strict'; | 
						|
 | 
						|
module.exports = { | 
						|
  isOpera: function() { | 
						|
    return global.navigator && | 
						|
      /opera/i.test(global.navigator.userAgent); | 
						|
  } | 
						|
 | 
						|
, isKonqueror: function() { | 
						|
    return global.navigator && | 
						|
      /konqueror/i.test(global.navigator.userAgent); | 
						|
  } | 
						|
 | 
						|
  // #187 wrap document.domain in try/catch because of WP8 from file:/// | 
						|
, hasDomain: function () { | 
						|
    // non-browser client always has a domain | 
						|
    if (!global.document) { | 
						|
      return true; | 
						|
    } | 
						|
 | 
						|
    try { | 
						|
      return !!global.document.domain; | 
						|
    } catch (e) { | 
						|
      return false; | 
						|
    } | 
						|
  } | 
						|
};
 | 
						|
 |