nodebb-plugin-composer-default 10.3.9 → 10.3.10

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 CHANGED
@@ -44,25 +44,6 @@ plugin.addAdminNavigation = async function (header) {
44
44
  return header;
45
45
  };
46
46
 
47
- plugin.addPrefetchTags = async function (hookData) {
48
- const { req } = hookData;
49
- if (req.uid > 0) {
50
- const prefetch = [
51
- '/assets/templates/composer.js',
52
- `/assets/language/${meta.config.defaultLang || 'en-GB'}/topic.json`,
53
- `/assets/language/${meta.config.defaultLang || 'en-GB'}/modules.json`,
54
- `/assets/language/${meta.config.defaultLang || 'en-GB'}/tags.json`,
55
- ];
56
-
57
- hookData.links = hookData.links.concat(prefetch.map(path => ({
58
- rel: 'prefetch',
59
- href: `${nconf.get('relative_path') + path}?${meta.config['cache-buster']}`,
60
- })));
61
- }
62
-
63
- return hookData;
64
- };
65
-
66
47
  plugin.getFormattingOptions = async function () {
67
48
  const defaultVisibility = {
68
49
  mobile: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.3.9",
3
+ "version": "10.3.10",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
package/plugin.json CHANGED
@@ -6,8 +6,7 @@
6
6
  { "hook": "static:app.load", "method": "init" },
7
7
  { "hook": "filter:config.get", "method": "appendConfig" },
8
8
  { "hook": "filter:composer.build", "method": "filterComposerBuild" },
9
- { "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
10
- { "hook": "filter:meta.getLinkTags", "method": "addPrefetchTags" }
9
+ { "hook": "filter:admin.header.build", "method": "addAdminNavigation" }
11
10
  ],
12
11
  "scss": [
13
12
  "./static/scss/composer.scss"