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:
15
prefs.php
15
prefs.php
@@ -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);
|
||||
}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user