From 7be2eba0fb097a83419158cbfa8ec1d81ffe8a91 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Wed, 1 Mar 2023 10:00:36 +0000 Subject: [PATCH] [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]: a5036864b11890c197d636c461a42720fbce6227 closes odoo/odoo#114082 X-original-commit: 222ad55966d9161394b9412a5baf14043b36baea Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 1719a91ca7e..ad148ca5407 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -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 = [ {