foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
if (method_exists($p, "get_js")) {
+ echo "try {";
echo JShrink\Minifier::minify($p->get_js());
+ echo "} catch (e) {
+ console.warn('failed to initialize plugin JS: $n');
+ console.warn(e);
+ }";
}
}
try {
//dojo.registerModulePath("fox", "../../js/");
- require(['dojo/_base/kernel',
- 'dojo/ready',
- 'dojo/parser',
- 'dojo/_base/loader',
+ require(["dojo/_base/kernel",
+ "dojo/ready",
+ "dojo/parser",
+ "dojo/_base/loader",
"dijit/ProgressBar",
"dijit/ColorPalette",
"dijit/Dialog",
dojo.require("fox.FeedTree");
- dojo.parser.parse();
+ parser.parse();
if (!genericSanityCheck())
return false;