Added console warning
This commit is contained in:
parent
7adb2dee05
commit
e15ec4bb3f
1 changed files with 7 additions and 0 deletions
|
|
@ -33,6 +33,13 @@ if (!wrapper) {
|
|||
throw new Error("Missing root element");
|
||||
}
|
||||
|
||||
if (localStorage.getItem("log_level") === null) {
|
||||
console.log(
|
||||
"%cDo not paste anything in here, there is a 101.1% chance you're being scammed.",
|
||||
"color: red; font-size: 24px; font-weight: bold; background: #220000; padding: 8px 12px; border: 3px solid red;",
|
||||
);
|
||||
}
|
||||
|
||||
// @ts-expect-error Declare global function
|
||||
window.setLogLevelToMax = () => {
|
||||
localStorage.setItem("log_level", String(1000));
|
||||
|
|
|
|||
Loading…
Reference in a new issue