summaryrefslogtreecommitdiff
path: root/available_plugins
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2012-02-26 00:59:05 +0100
committerEgil Moeller <egil.moller@freecode.no>2012-02-26 00:59:05 +0100
commit1955bdec9a0f0448e5b04638f0e69ed3b9210f39 (patch)
tree34db3cd7b0a380afde7ed68d93486fbc58850d60 /available_plugins
parent2a58a62dcc95185983f74f8946f800f32c04ef24 (diff)
downloadetherpad-lite-1955bdec9a0f0448e5b04638f0e69ed3b9210f39.zip
plugins.plugins is now defined while loading hook modules from plugins
Diffstat (limited to 'available_plugins')
-rw-r--r--available_plugins/pluginomatic_fintest/otherpart.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/available_plugins/pluginomatic_fintest/otherpart.js b/available_plugins/pluginomatic_fintest/otherpart.js
index 9710fa4e..bf9bf1de 100644
--- a/available_plugins/pluginomatic_fintest/otherpart.js
+++ b/available_plugins/pluginomatic_fintest/otherpart.js
@@ -1,3 +1,6 @@
+test = ep_client_require("/plugins/pluginomatic_fintest/test.js");
+console.log("FOOO:", test.foo);
+
exports.somehook = function (hook_name, args, cb) {
return cb(["otherpart:somehook was here"]);
}
@@ -7,9 +10,6 @@ exports.morehook = function (hook_name, args, cb) {
}
exports.expressServer = function (hook_name, args, cb) {
- test = ep_client_require("/plugins/pluginomatic_fintest/test.js");
- console.log("FOOO:", test.foo);
-
args.app.get('/otherpart', function(req, res) {
res.send("<em>Abra cadabra</em>");
});