mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
Merge pull request #2175 from ether/fix-handleMessage
Pluginfw: Interpret hook return value `null` as `[null]` instead of `undefined` see http://etherpad.org/doc/v1.4.0/#index_return_values fixes dropping of messages in handleMessage
This commit is contained in:
commit
71c7deecd9
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ var hookCallWrapper = function (hook, hook_name, args, cb) {
|
||||||
|
|
||||||
// Normalize output to list for both sync and async cases
|
// Normalize output to list for both sync and async cases
|
||||||
var normalize = function(x) {
|
var normalize = function(x) {
|
||||||
if (x == undefined) return [];
|
if (x === undefined) return [];
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
var normalizedhook = function () {
|
var normalizedhook = function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue