nodebb-plugin-composer-default 10.3.8 → 10.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +2 -5
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -48,9 +48,7 @@ plugin.addPrefetchTags = async function (hookData) {
|
|
|
48
48
|
const { req } = hookData;
|
|
49
49
|
if (req.uid > 0) {
|
|
50
50
|
const prefetch = [
|
|
51
|
-
'/assets/
|
|
52
|
-
'/assets/src/modules/composer/tags.js', '/assets/src/modules/composer/categoryList.js', '/assets/src/modules/composer/resize.js',
|
|
53
|
-
'/assets/src/modules/composer/autocomplete.js', '/assets/templates/composer.tpl',
|
|
51
|
+
'/assets/templates/composer.js',
|
|
54
52
|
`/assets/language/${meta.config.defaultLang || 'en-GB'}/topic.json`,
|
|
55
53
|
`/assets/language/${meta.config.defaultLang || 'en-GB'}/modules.json`,
|
|
56
54
|
`/assets/language/${meta.config.defaultLang || 'en-GB'}/tags.json`,
|
|
@@ -120,8 +118,7 @@ plugin.getFormattingOptions = async function () {
|
|
|
120
118
|
};
|
|
121
119
|
|
|
122
120
|
plugin.filterComposerBuild = async function (hookData) {
|
|
123
|
-
const { req } = hookData;
|
|
124
|
-
const { res } = hookData;
|
|
121
|
+
const { req, res } = hookData;
|
|
125
122
|
|
|
126
123
|
if (req.query.p) {
|
|
127
124
|
try {
|