mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
27 lines
560 B
JavaScript
27 lines
560 B
JavaScript
(function(){
|
|
"use strict";
|
|
|
|
/**
|
|
* Because I didn't want to write over FancyFirstChar
|
|
*/
|
|
var ExampleFilter;
|
|
|
|
var ExampleFilter = function(ghost){
|
|
this.ghost = function() {
|
|
return ghost;
|
|
}
|
|
}
|
|
|
|
ExampleFilter.prototype.init = function() {
|
|
|
|
this.ghost().registerFilter('messWithAdmin', function(adminNavbar){
|
|
console.log('adminnavbar settings run');
|
|
// delete adminNavbar.add;
|
|
return adminNavbar;
|
|
});
|
|
|
|
};
|
|
|
|
module.exports = ExampleFilter;
|
|
|
|
}()); |