Skip to content

Commit

Permalink
feat: eruda (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Dec 19, 2023
1 parent 8338da0 commit d55efa0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,26 @@ class ZitiBrowzerRuntime {
*/
async initialize(options) {

// Initialize eruda if it's present in the DOM
if (typeof eruda !== 'undefined') {
eruda.init({
tool: [
'console',
'elements',
'resources',
'info',
'snippets'
],
useShadowDom: true,
autoScale: true,
defaults: {
displaySize: 50,
transparency: 0.9,
theme: 'Monokai Pro'
}
});
}

this.logger = this.core.createZitiLogger({
logLevel: this.logLevel,
suffix: 'ZBR' // run-time
Expand Down

0 comments on commit d55efa0

Please sign in to comment.