harmony 鸿蒙Web Subsystem Changelog

  • 2023-06-24
  • 浏览 (198)

Web Subsystem Changelog

Compared with earlier versions, OpenHarmony 4.0.6.1 has the following API changes in its web subsystem:

cl.web.1 Parameters in createWebMessagePorts

Added an optional parameter to the WebMessagePort API to accommodate more data types.

Change Impact

None (The added parameter is optional, and the API is forward compatible.)

Key API/Component Changes

  • Involved APIs:

createWebMessagePorts(): Array<WebMessagePort>;

  • Before change:
  createWebMessagePorts(): Array<WebMessagePort>;
  • After change:
  createWebMessagePorts(isExtentionType?: boolean): Array<WebMessagePort>;

Adaptation Guide

N/A

你可能感兴趣的鸿蒙文章

harmony 鸿蒙HUKS Changelog

harmony 鸿蒙USB Subsystem API Changelog

0  赞