Sha256: 62a93fb2f04552827935f599be735592a34536ad4239d1b70a8c5f9cc00de3af
Contents?: true
Size: 560 Bytes
Versions: 34
Compression:
Stored size: 560 Bytes
Contents
'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; } } };
Version data entries
34 entries across 33 versions & 12 rubygems