mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #1946 from JoelGritter/JoelGritter-patch-1
Fix gh-1899: Add Console Warning
This commit is contained in:
commit
ff662b37c5
1 changed files with 22 additions and 0 deletions
22
src/init.js
22
src/init.js
|
@ -36,3 +36,25 @@ const Raven = require('raven-js');
|
||||||
|
|
||||||
window._locale = updateLocale();
|
window._locale = updateLocale();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* -----------------------------------------------------------------------------
|
||||||
|
* Console warning
|
||||||
|
* -----------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
(() => {
|
||||||
|
window.onload = function () {
|
||||||
|
/* eslint-disable no-console */
|
||||||
|
console.log('%cStop!', 'color: #F00; font-size: 30px; -webkit-text-stroke: 1px black; font-weight:bold');
|
||||||
|
console.log(
|
||||||
|
'This is part of your browser intended for developers. ' +
|
||||||
|
'If someone told you to copy-and-paste something here, ' +
|
||||||
|
'don\'t do it! It could allow them to take over your ' +
|
||||||
|
'Scratch account, delete all of your projects, or do many ' +
|
||||||
|
'other harmful things. If you don\'t understand what exactly ' +
|
||||||
|
'you are doing here, you should close this window without doing ' +
|
||||||
|
'anything.'
|
||||||
|
);
|
||||||
|
/* eslint-enable no-console */
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
|
Loading…
Reference in a new issue