X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=index.php;h=66314ad17d2271b653e7822989529a6c8234d9b8;hb=6f84bf7b0a2fcab6143b7a7fa95d70c539bb5267;hp=309ca2e29521245ab2274133fed652d67502f22c;hpb=ed775e4e8dba0e3a527ea13b5581c1ce6ee752bc;p=tt-rss.git diff --git a/index.php b/index.php index 309ca2e2..66314ad1 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,7 @@ + + 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); + }"; } } @@ -118,6 +133,7 @@ +