1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:35:55 +00:00

remove jshrink

This commit is contained in:
Andrew Dolgov
2018-12-13 20:13:30 +03:00
parent a1454a6c1d
commit 356729310b
5 changed files with 18 additions and 684 deletions

View File

@@ -84,12 +84,15 @@
<?php
foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
if (method_exists($p, "get_prefs_js")) {
echo "try {";
echo JShrink\Minifier::minify($p->get_prefs_js());
echo "} catch (e) {
console.warn('failed to initialize plugin JS: $n');
console.warn(e);
}";
$script = $p->get_prefs_js();
if ($script) {
echo "try {
$script
} catch (e) {
console.warn('failed to initialize plugin JS: $n', e);
}";
}
}
}