From: Marcin Bialek Date: Thu, 21 Apr 2022 10:23:13 +0000 (+0200) Subject: [Messageport] Fix return value from requestLocalMessagePort function X-Git-Tag: submit/tizen/20220422.045339^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F274107%2F1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Messageport] Fix return value from requestLocalMessagePort function [Verification] Code compiles. 100% pass rate for tct-messageport-tizen-tests on TV. Change-Id: Iab0ed6edb8f0eb9c45319135a4f85a79e3ca3a41 Signed-off-by: Marcin Bialek --- diff --git a/src/messageport/messageport_api.js b/src/messageport/messageport_api.js index 0fe58264..795937c9 100755 --- a/src/messageport/messageport_api.js +++ b/src/messageport/messageport_api.js @@ -81,7 +81,7 @@ MessagePortManager.prototype.requestLocalMessagePort = function(localMessagePort } } - return args.localMessagePortName; + return ports[args.localMessagePortName]; }; MessagePortManager.prototype.requestTrustedLocalMessagePort = function(