feat: complete Phase 0 Enterprise IAM
This commit is contained in:
1 parent
3d2d291006
commit
c2f5ba3f54
202 files changed
+21371
-1360
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const fs = require('fs');
|
||||
const file = 'ui/dist/assets/boot.js';
|
||||
let content = fs.readFileSync(file, 'utf8');
|
||||
content = `
|
||||
const originalError = console.error;
|
||||
console.error = function(...args) {
|
||||
originalError.apply(console, args);
|
||||
const el = document.getElementById("main");
|
||||
if (el) {
|
||||
el.innerHTML = "<pre style='color:red'>" + args.map(a => String(a)).join(" ") + "</pre>";
|
||||
}
|
||||
};
|
||||
` + content;
|
||||
fs.writeFileSync(file, content);
|
||||
Reference in new issue
Block a user