Whitespace changes - indentation consistency
Clearing the noise from the commit diff -
editor imposed whitespace style changes.
modified: core/main/client/browser.js
This commit is contained in:
@@ -1679,47 +1679,47 @@ beef.browser = {
|
||||
if (this.isC5()) {
|
||||
return '5'
|
||||
}
|
||||
; // Chrome 5
|
||||
; // Chrome 5
|
||||
if (this.isC6()) {
|
||||
return '6'
|
||||
}
|
||||
; // Chrome 6
|
||||
; // Chrome 6
|
||||
if (this.isC7()) {
|
||||
return '7'
|
||||
}
|
||||
; // Chrome 7
|
||||
; // Chrome 7
|
||||
if (this.isC8()) {
|
||||
return '8'
|
||||
}
|
||||
; // Chrome 8
|
||||
; // Chrome 8
|
||||
if (this.isC9()) {
|
||||
return '9'
|
||||
}
|
||||
; // Chrome 9
|
||||
; // Chrome 9
|
||||
if (this.isC10()) {
|
||||
return '10'
|
||||
}
|
||||
; // Chrome 10
|
||||
; // Chrome 10
|
||||
if (this.isC11()) {
|
||||
return '11'
|
||||
}
|
||||
; // Chrome 11
|
||||
; // Chrome 11
|
||||
if (this.isC12()) {
|
||||
return '12'
|
||||
}
|
||||
; // Chrome 12
|
||||
; // Chrome 12
|
||||
if (this.isC13()) {
|
||||
return '13'
|
||||
}
|
||||
; // Chrome 13
|
||||
; // Chrome 13
|
||||
if (this.isC14()) {
|
||||
return '14'
|
||||
}
|
||||
; // Chrome 14
|
||||
; // Chrome 14
|
||||
if (this.isC15()) {
|
||||
return '15'
|
||||
}
|
||||
; // Chrome 15
|
||||
; // Chrome 15
|
||||
if (this.isC16()) {
|
||||
return '16'
|
||||
}
|
||||
@@ -1996,7 +1996,7 @@ beef.browser = {
|
||||
return '51'
|
||||
}
|
||||
; // Chrome 51 for iOS
|
||||
if (this.isC52()) {
|
||||
if (this.isC52()) {
|
||||
return '52'
|
||||
}
|
||||
;// Chrome 52
|
||||
@@ -2374,7 +2374,7 @@ beef.browser = {
|
||||
if (this.isC()) {
|
||||
return 'C'
|
||||
}
|
||||
; // Chrome any version
|
||||
; // Chrome any version
|
||||
if (this.isFF()) {
|
||||
return 'FF'
|
||||
}
|
||||
@@ -2878,8 +2878,9 @@ beef.browser = {
|
||||
*/
|
||||
getPluginsIE: function () {
|
||||
var results = '';
|
||||
var plugins = {'AdobePDF6': {
|
||||
'control': 'PDF.PdfCtrl',
|
||||
var plugins = {
|
||||
'AdobePDF6': {
|
||||
'control': 'PDF.PdfCtrl',
|
||||
'return': function (control) {
|
||||
version = control.getVersions().split(',');
|
||||
version = version[0].split('=');
|
||||
@@ -2997,14 +2998,14 @@ beef.browser = {
|
||||
var page_referrer = (document.referrer) ? document.referrer : "Unknown";
|
||||
var hostname = (document.location.hostname) ? document.location.hostname : "Unknown";
|
||||
switch (document.location.protocol) {
|
||||
case "http:":
|
||||
var default_port = "80";
|
||||
break;
|
||||
case "https:":
|
||||
var default_port = "443";
|
||||
break
|
||||
default:
|
||||
var default_port = "";
|
||||
case "http:":
|
||||
var default_port = "80";
|
||||
break;
|
||||
case "https:":
|
||||
var default_port = "443";
|
||||
break
|
||||
default:
|
||||
var default_port = "";
|
||||
}
|
||||
var hostport = (document.location.port) ? document.location.port : default_port;
|
||||
var browser_plugins = beef.browser.getPlugins();
|
||||
@@ -3191,13 +3192,13 @@ beef.browser = {
|
||||
* @from: https://github.com/idofilin/webgl-by-example/blob/master/detect-webgl/detect-webgl.js
|
||||
* */
|
||||
hasWebGL: function () {
|
||||
try {
|
||||
var canvas = document.createElement("canvas");
|
||||
var gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
|
||||
return !!(gl && gl instanceof WebGLRenderingContext);
|
||||
} catch(e) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
var canvas = document.createElement("canvas");
|
||||
var gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
|
||||
return !!(gl && gl instanceof WebGLRenderingContext);
|
||||
} catch(e) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -3355,7 +3356,7 @@ beef.browser = {
|
||||
if (scope == 'PER_DOMAIN')
|
||||
testUrl = "http://browserspy.dk/connections.php?img=1&random=";
|
||||
else
|
||||
// The token will be replaced by a different number with each request (different origin).
|
||||
// The token will be replaced by a different number with each request (different origin).
|
||||
testUrl = "http://<token>.browserspy.dk/connections.php?img=1&random=";
|
||||
|
||||
var imagesLoaded = 0; // Number of responding images before timeout.
|
||||
|
||||
Reference in New Issue
Block a user