Skip to content

Commit 56eed3b

Browse files
committed
Rename menu method for clarity
1 parent 551f95a commit 56eed3b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

library.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@
106106
}
107107
},
108108

109-
plugin.adminMenu = function(headers, callback) {
109+
plugin.addAdminMenu = function(header, callback) {
110110
translator.translate('[[discord-notification:title]]', function(title) {
111-
headers.plugins.push({
111+
header.plugins.push({
112112
route : '/plugins/discord-notification',
113113
icon : 'fa-bell',
114114
name : title
115115
});
116116

117-
callback(null, headers);
117+
callback(null, header);
118118
});
119119
};
120120

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"library": "./library.js",
77
"hooks": [
88
{ "hook": "static:app.load", "method": "init" },
9-
{ "hook": "filter:admin.header.build", "method": "adminMenu" },
9+
{ "hook": "filter:admin.header.build", "method": "addAdminMenu" },
1010
{ "hook": "action:post.save", "method": "postSave"}
1111
],
1212
"templates": "./public/templates",

0 commit comments

Comments
 (0)