Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 8926298

Browse files
feat: console log debugger
1 parent 7f1059c commit 8926298

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

studio/src/global/app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ setupConfig({
2424
},
2525
signalingServerUrl: '<@SIGNALING_SERVER_URL@>'
2626
});
27+
28+
// IE9: https://stackoverflow.com/questions/5472938/does-ie9-support-console-log-and-is-it-a-real-function#answer-5473193
29+
const log: any = Function.prototype.bind.call(console.log, console);
30+
log.apply(console, ['%cDeckDeckGo', 'color: #3880ff;font-size:2rem;font-weight: 300;']);
31+
log.apply(console, ['%cHey there, interested by our code? Lucky you, we are open source :)', 'color: black;font-size:1rem;font-weight: 300;']);
32+
log.apply(console, ['%cCome say hi and contribute to our project on Github', 'color: black;font-size:1rem;font-weight: 300;']);
33+
log.apply(console, ['%chttps://github.com/deckgo/deckdeckgo', 'font-size:1rem;font-weight: 300;']);

0 commit comments

Comments
 (0)