UNPKG
@parlour/parlour-client
Version:
latest (0.1.1)
1.0.0
0.1.1
0.1.0
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.3
0.0.2
0.0.1
The parlour websocket client
gitlab.com/parlour1/parlour-client
@parlour/parlour-client
/
src
/
lib
/
debug-tool.js
24 lines
(17 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class
DebugTool
{
constructor
(
) {
this
.
open
(); }
open
(
) {
this
.
_log
=
function
(
) {
console
.
log
.
apply
(
console
,
arguments
); }; }
close
(
) {
this
.
_log
=
function
(
) {}; }
log
(
) {
this
.
_log
.
apply
(
this
,
arguments
); } }
export
default
DebugTool
;