[FIX] web_editor: remove unnecessary structuredClone

Commit [1] introduced a usage of `structuredClone` in 16.0 where
it is not supported. This was a mistake introduced by backporting
[2] from master to 16.0.

However, the `structuredClone` was not necessary in the first place
anyway, so this commit removes it.

[1]: c472e600da3237d3cb0a6352a4d26ebb3ed6e20c
[2]: a5036864b1

closes odoo/odoo#114082

X-original-commit: 222ad55966d9161394b9412a5baf14043b36baea
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
David Monjoie
2023-03-02 11:23:45 +01:00
parent 15bc39d3ef
commit 7be2eba0fb
@@ -601,7 +601,7 @@ const Wysiwyg = Widget.extend({
if (!ICE_SERVERS) {
ICE_SERVERS = await this._rpc({route: '/web_editor/get_ice_servers'});
}
let iceServers = structuredClone(ICE_SERVERS);
let iceServers = ICE_SERVERS;
if (!iceServers.length) {
iceServers = [
{