Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kurdin committed Mar 13, 2021
1 parent 38e1165 commit be31bcc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
dist/*.map
dump.rdb
.DS_Store
2 changes: 1 addition & 1 deletion dist/connector.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions lib/connector.browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ if (!window.console) window.console = {}
window.matchMedia = window.matchMedia || matchMedia
IEArraysPolyfill()

var isLocal = window.location.port
? true
: /localhost|[0-9]{2,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|::1|\.local|local|runjs\.co|\.dev|console.re|^$/gi.test(
window.location.hostname
)
? true
: false

var name = 'toServerRe'

var consoleReOptions = {
Expand Down Expand Up @@ -241,14 +249,6 @@ var root = (function () {
'command'
]

var isLocal = window.location.port
? true
: /localhost|[0-9]{2,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|::1|\.local|local|.dev|console.re|^$/gi.test(
window.location.hostname
)
? true
: false

function emit(level, args, cmd, cal) {
caller = cal || getCaller()

Expand Down Expand Up @@ -689,7 +689,7 @@ var root = (function () {
api.d = api.debug

api.redirectDefaultLog = function () {
if (window.consoleDefault && window.consoleDefault.log) {
if ((window.consoleDefault && window.consoleDefault.log) || !isLocal) {
return
}
if (consoleReOptions['redirectDefaultConsoleToRemote']) {
Expand Down

0 comments on commit be31bcc

Please sign in to comment.