Merge pull request #9972 from scmmishra/self-xss-warning

feat: show self xss warning in console
This commit is contained in:
mergify[bot] 2020-04-18 14:54:41 +00:00 committed by GitHub
commit bd16804a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,14 @@ frappe.Application = Class.extend({
this.show_update_available();
}
if (!frappe.boot.developer_mode) {
let console_security_message = __("Using this console may allow attackers to impersonate you and steal your information. Do not enter or paste code that you do not understand.");
console.log(
`%c${console_security_message}`,
"font-size: large"
);
}
this.show_notes();
if (frappe.boot.is_first_startup) {