diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/static/js/pluginfw/hooks.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/static/js/pluginfw/hooks.js b/src/static/js/pluginfw/hooks.js index a3bd3f03..44f5fc3f 100644 --- a/src/static/js/pluginfw/hooks.js +++ b/src/static/js/pluginfw/hooks.js @@ -1,14 +1,6 @@ -var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins"); -var _; - -/* FIXME: Ugly hack, in the future, use same code for server & client */ -if (plugins.isClient) { - var async = require("async"); - var _ = require("ep_etherpad-lite/static/js/underscore"); -} else { - var async = require("async"); - var _ = require("underscore"); -} +var plugins = require("./plugins"); +var async = require("async"); +var _ = require("underscore"); exports.bubbleExceptions = true |