Check console opened
This commit is contained in:
parent
2f9e028eec
commit
2b43aaf5cd
@ -827,17 +827,10 @@ utils.prototype.decodeCanvas = function (arr, width, height) {
|
|||||||
utils.prototype.consoleOpened = function () {
|
utils.prototype.consoleOpened = function () {
|
||||||
if (window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized)
|
if (window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized)
|
||||||
return true;
|
return true;
|
||||||
var zoom = [1,1.1,1.25,1.5,1.75,2];
|
|
||||||
var ow = window.outerWidth, oh = window.outerHeight;
|
|
||||||
var iw = window.innerWidth, ih = window.innerHeight;
|
|
||||||
var threshold = 160;
|
var threshold = 160;
|
||||||
|
var zoom = Math.min(window.outerWidth/window.innerWidth, window.outerHeight/window.innerHeight);
|
||||||
for (var i in zoom) {
|
return window.outerWidth - zoom*window.innerWidth > threshold
|
||||||
var cw = iw * zoom[i], ch = ih * zoom[i];
|
|| window.outerHeight - zoom*window.innerHeight > threshold;
|
||||||
if (cw>ow-threshold && ch>oh-threshold) return false;
|
|
||||||
if (cw>ow-threshold || ch>oh-threshold) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.prototype.hashCode = function (obj) {
|
utils.prototype.hashCode = function (obj) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user