@lvce-editor/about-view 7.21.0 → 7.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1851,7 +1851,7 @@ const set = rpc => {
1851
1851
  state.connected = true;
1852
1852
  };
1853
1853
 
1854
- const handleMessagePort = async (port, viewletCommandMap) => {
1854
+ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
1855
1855
  const executeViewletCommand = async (uid, command, ...args) => {
1856
1856
  const fn = viewletCommandMap[`About.${command}`];
1857
1857
  if (typeof fn !== 'function') {
@@ -1866,7 +1866,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
1866
1866
  },
1867
1867
  messagePort: port
1868
1868
  });
1869
- set(rpc);
1869
+ if (setAsRendererProcess) {
1870
+ set(rpc);
1871
+ }
1870
1872
  };
1871
1873
 
1872
1874
  const OneSecondAgo = '1 second ago';
@@ -2546,7 +2548,7 @@ const showAbout = async platform => {
2546
2548
  await fn();
2547
2549
  };
2548
2550
 
2549
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
2551
+ const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
2550
2552
  const commandMap = {
2551
2553
  'About.create': create,
2552
2554
  'About.diff2': diff2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/about-view",
3
- "version": "7.21.0",
3
+ "version": "7.22.0",
4
4
  "description": "About View Worker",
5
5
  "keywords": [
6
6
  "about-view"