docs: Add notice to use unpkg instead of demos. (#6667)

Logs show about a dozen orgs actively using Blockly instances that are hot-linked to blockly-demo.appspot.com

These files disappeared on 25 November 2022, breaking a bunch of people.  This alert should point developers in the right direction.
This commit is contained in:
Neil Fraser
2022-12-04 20:30:36 +01:00
committed by GitHub
parent 1c768e8121
commit b5eeaa352c

View File

@@ -0,0 +1,11 @@
// Added November 2022 after discovering that a number of orgs were hot-linking
// their Blockly applications to https://blockly-demo.appspot.com/
// Delete this file in early 2024.
var msg = 'Compiled Blockly files should be loaded from https://unpkg.com/blockly/\n' +
'For help, contact https://groups.google.com/g/blockly';
console.log(msg);
try {
alert(msg);
} catch (_e) {
// Can't alert? Probably node.js.
}