mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Minify: Also serve jquery.js
from old path for compatibility
This commit is contained in:
parent
f845f21ba5
commit
0cce4ae536
2 changed files with 8 additions and 0 deletions
|
@ -113,6 +113,13 @@ const minify = async (req, res) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Backward compatibility for plugins that were written when jQuery lived at
|
||||||
|
// src/static/js/jquery.js.
|
||||||
|
if (['js/jquery.js', 'plugins/ep_etherpad-lite/static/js/jquery.js'].indexOf(filename) !== -1) {
|
||||||
|
logger.warn(`request for deprecated jQuery path: ${filename}`);
|
||||||
|
filename = 'js/vendors/jquery.js';
|
||||||
|
}
|
||||||
|
|
||||||
/* Handle static files for plugins/libraries:
|
/* Handle static files for plugins/libraries:
|
||||||
paths like "plugins/ep_myplugin/static/js/test.js"
|
paths like "plugins/ep_myplugin/static/js/test.js"
|
||||||
are rewritten into ROOT_PATH_OF_MYPLUGIN/static/js/test.js,
|
are rewritten into ROOT_PATH_OF_MYPLUGIN/static/js/test.js,
|
||||||
|
|
|
@ -82,4 +82,5 @@
|
||||||
, "pluginfw/shared.js"
|
, "pluginfw/shared.js"
|
||||||
, "pluginfw/hooks.js"
|
, "pluginfw/hooks.js"
|
||||||
]
|
]
|
||||||
|
, "jquery.js": ["jquery.js"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue