From b5eeaa352c82ee9f15cc658bf56fab53a5bebec7 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Sun, 4 Dec 2022 20:30:36 +0100 Subject: [PATCH] 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. --- appengine/blockly_compressed.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 appengine/blockly_compressed.js diff --git a/appengine/blockly_compressed.js b/appengine/blockly_compressed.js new file mode 100644 index 000000000..dc118dfbe --- /dev/null +++ b/appengine/blockly_compressed.js @@ -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. +}