Skip to content

Commit f8c3828

Browse files
imlucaskangas
authored andcommitted
🐛 🏁 INT-1285: fix debug module
@see mongodb-js/debug@bbef4e8071472df26bcdac104697a 8b94bf4c55c
1 parent 00efc90 commit f8c3828

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"backoff": "^2.4.1",
6565
"bootstrap": "https://github.com/twbs/bootstrap/archive/v3.3.5.tar.gz",
6666
"d3": "^3.5.6",
67-
"debug": "^2.2.0",
67+
"debug": "mongodb-js/debug",
6868
"debug-menu": "^0.3.0",
6969
"electron-squirrel-startup": "^0.1.4",
7070
"font-awesome": "https://github.com/FortAwesome/Font-Awesome/archive/v4.4.0.tar.gz",

src/app/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@
1010
<div data-hook="statusbar"></div>
1111
<div data-hook="layout-container"></div>
1212
</div>
13+
<script src="index.js" charset="UTF-8" async></script>
1314
<script>
1415
window.less = {
1516
env: process.env.NODE_ENV,
1617
logLevel: 2,
1718
async: true
1819
};
19-
if (process.env.NODE_ENV !== 'production') {
20-
require('debug').enable('mon*');
21-
}
2220
</script>
23-
<script src="index.js" charset="UTF-8" async></script>
24-
<script src="../../node_modules/less/dist/less.js" charset="UTF-8"></script>
25-
<script>// less.watch();</script>
21+
<script src="../../node_modules/less/dist/less.js" charset="UTF-8" async></script>
2622
</body>
2723
</html>

src/app/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
/* eslint no-console:0 */
2-
/**
3-
* Explicitly require debug module in browser mode,
4-
* or no messages will be logged to the devtools console.
5-
*/
6-
require('debug/browser');
2+
if (process.env.NODE_ENV !== 'production') {
3+
require('debug').enable('mon*');
4+
}
5+
76
var debug = require('debug')('mongodb-compass:app');
87
console.time('app/index.js');
98

10-
119
/**
1210
* The main entrypoint for the application!
1311
*/

0 commit comments

Comments
 (0)