Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Apr 28, 2019
1 parent af00902 commit 35672bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EhDbReleaseBuilder/jswrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@types/node": "^11.13.8"
},
"scripts": {
"start": "uglifyjs pako.js -mc --wrap d -o pako.min.js"
"start": "uglifyjs pako.js -mcd _DEBUG_=false --wrap d -o pako.min.js"
},
"author": "",
"license": "ISC"
Expand Down
7 changes: 6 additions & 1 deletion EhDbReleaseBuilder/jswrapper/pako.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if (typeof window !== 'undefined') {
} else {
gThis = this;
}
if (typeof _DEBUG_ === 'undefined') {
console.log(gThis);
}
var callback = gThis[d.c];
var data;
if (typeof gThis.atob === 'function') {
Expand Down Expand Up @@ -3327,6 +3330,8 @@ var pako =
}).inflate;
var json = pako(data, { to: 'string' });
var obj = JSON.parse(json);
console.log(obj);
if (typeof _DEBUG_ === 'undefined') {
console.log(obj);
}
callback(obj);

Loading

0 comments on commit 35672bb

Please sign in to comment.