From 0e88c89a60ec58904d253c853be1ba465c205bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=CD=85=CD=88=CC=A4=CC=96=CC=AA=CC=AA=CC=B1l=CC=AF=CC=AF?= =?UTF-8?q?=CC=AE=CC=BC=CD=8E=CC=AC=CD=9A=CC=B3=CC=A9=CC=96=CC=B2u=CC=9C?= =?UTF-8?q?=CC=BC=CD=89=CD=88=CC=A0b=CD=99=CC=AC=CC=98=CC=99=CC=B1=CC=97?= =?UTF-8?q?=CC=B2=CD=99b=CD=8D=CC=9E=CC=AC=CC=AC=CD=93=CC=BCl=CC=B0=CC=AA?= =?UTF-8?q?=CD=96=CC=AF=CC=BC=CC=9F=CD=85=CC=9F=CD=88=CC=96=CD=95=CC=9C?= =?UTF-8?q?=CC=B1=CC=9Cl=CC=BB=CC=97=CD=94=CC=9D=CC=AD=CC=B0=CD=9A=CD=87?= =?UTF-8?q?=CC=AF=CC=A5?= <34196146+blubbll@users.noreply.github.com> Date: Fri, 19 Oct 2018 17:31:36 +0200 Subject: [PATCH] pass an argument to disable debugging may be the wrong file, but i hope you get the idea. i got annoyed by firefox getting spammed there. if this already existed, i'm sorry to push it. var socket = new window.BCSocket('/channel', {reconnect:true, debug:false}); --- dist/bcsocket-uncompressed.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/bcsocket-uncompressed.js b/dist/bcsocket-uncompressed.js index b2f19c6..f1f052e 100644 --- a/dist/bcsocket-uncompressed.js +++ b/dist/bcsocket-uncompressed.js @@ -811,7 +811,7 @@ function Qb(a) { return null; } f.log = function(a, b, c) { - if (a.value >= Qb(this).value) { + if (a.value >= Qb(this).value) { if(debug) for (fa(b) && (b = b()), a = this.mc(a, b, c), b = "log:" + a.qc, l.console && (l.console.timeStamp ? l.console.timeStamp(b) : l.console.markTimeline && l.console.markTimeline(b)), l.msWriteProfilerMark && l.msWriteProfilerMark(b), b = this;b;) { c = b; var d = a; @@ -2654,6 +2654,7 @@ $ = function(a, b) { b || (b = {}); m(b || "string" === typeof b) && (b = {}); K = b.reconnectTime || 3E3; + debug=void 0===b.debug||b.debug; c = b.extraHeaders || null; d = b.extraParams || null; null !== b.affinity && (d || (d = {}), b.affinityParam || (b.affinityParam = "a"), this.affinity = b.affinity || sa(), d[b.affinityParam] = this.affinity);