@lvce-editor/about-view 7.37.0 → 7.39.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.
@@ -2079,13 +2079,20 @@ const loadConfig = async () => {
2079
2079
  };
2080
2080
  };
2081
2081
 
2082
- const loadContent2 = async context => {
2082
+ const getContent = async () => {
2083
2083
  const config = await loadConfig();
2084
+ return {
2085
+ lines: getDetailStringWeb(config),
2086
+ productName: config.productName
2087
+ };
2088
+ };
2089
+ const loadContent2 = async (context, content) => {
2090
+ const resolvedContent = content || (await getContent());
2084
2091
  await context.updateState(state => ({
2085
2092
  ...state,
2086
2093
  focusId: Ok$2,
2087
- lines: getDetailStringWeb(config),
2088
- productName: config.productName
2094
+ lines: resolvedContent.lines,
2095
+ productName: resolvedContent.productName
2089
2096
  }));
2090
2097
  };
2091
2098