mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
hooks: restore Internet Explorer 11 compatibility.
Compatibility with IE11 regressed in 23eab79946
while working for #3488.
That commit made use of modern js syntax, not supported by IE11.
- Removed arrow functions, replaced with normal functions.
- Removed the spread operator (<...iterable>) and the "new Set()" construct,
replaced with _.uniq()
At some point IE11 compatibility will be dropped.
Ditching it now, for such a small gain, is not wise.
Fixes #3500.
This commit is contained in:
parent
fe20ffa202
commit
0ad8291ae7
1 changed files with 4 additions and 4 deletions
|
@ -143,11 +143,11 @@ exports.clientPluginNames = function() {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
var client_plugin_names = [...new Set(
|
var client_plugin_names = _.uniq(
|
||||||
exports.plugins.parts
|
exports.plugins.parts
|
||||||
.filter(part => part.hasOwnProperty('client_hooks'))
|
.filter(function(part) { return part.hasOwnProperty('client_hooks'); })
|
||||||
.map(part => part['plugin'])
|
.map(function(part) { return part['plugin']; })
|
||||||
)];
|
);
|
||||||
|
|
||||||
return client_plugin_names;
|
return client_plugin_names;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue