mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
DevTools warning
This commit is contained in:
@@ -67,10 +67,25 @@ speechSynthesis.getVoices();
|
|||||||
configRepository.setBool('migrate_config_20201101', true);
|
configRepository.setBool('migrate_config_20201101', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var showConsoleWarningMessage = function () {
|
||||||
|
if ($app.debug || $app.debugWebRequests || $app.debugWebSocket) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.log(
|
||||||
|
'%cCareful! This might not do what you think.',
|
||||||
|
'background-color: red; color: yellow; font-size: 32px; font-weight: bold'
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
'%cIf someone told you to copy-paste something here, it can give them access to your account.',
|
||||||
|
'font-size: 20px;'
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
document.addEventListener('keyup', function (e) {
|
document.addEventListener('keyup', function (e) {
|
||||||
if (e.ctrlKey) {
|
if (e.ctrlKey) {
|
||||||
if (e.key === 'I') {
|
if (e.key === 'I') {
|
||||||
AppApi.ShowDevTools();
|
AppApi.ShowDevTools();
|
||||||
|
showConsoleWarningMessage();
|
||||||
} else if (e.key === 'r') {
|
} else if (e.key === 'r') {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user