@xuda.io/runtime-bundle 1.0.747 → 1.0.748

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.
@@ -14374,16 +14374,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14374
14374
  };
14375
14375
 
14376
14376
  const load_css_style = function () {
14377
- let path = get_path('style.css');
14377
+ const get_css_path = function (resource) {
14378
+ if (_session.worker_type === 'Dev') {
14379
+ return `../../plugins/${plugin_name}/${resource}`;
14380
+ }
14381
+ return `https://${_session.domain}/plugins/${plugin_name}/${plugin.manifest[resource].dist ? 'dist/' : ''}${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
14382
+ };
14383
+ let path = get_css_path('style.css');
14378
14384
  func.utils.load_css_on_demand(path);
14379
14385
  };
14380
14386
 
14381
- const get_path = function (resource) {
14382
- if (_session.worker_type === 'Dev') {
14383
- return `../../plugins/${plugin_name}/${resource}`;
14384
- }
14385
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
14386
- };
14387
14387
  const _plugin = APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
14388
14388
  const index = await func.utils.get_plugin_resource(SESSION_ID, plugin_name, `${_plugin.manifest['index.mjs'].dist ? 'dist/' : ''}index.mjs`);
14389
14389
  const methods = index.methods;
@@ -12084,16 +12084,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12084
12084
  };
12085
12085
 
12086
12086
  const load_css_style = function () {
12087
- let path = get_path('style.css');
12087
+ const get_css_path = function (resource) {
12088
+ if (_session.worker_type === 'Dev') {
12089
+ return `../../plugins/${plugin_name}/${resource}`;
12090
+ }
12091
+ return `https://${_session.domain}/plugins/${plugin_name}/${plugin.manifest[resource].dist ? 'dist/' : ''}${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
12092
+ };
12093
+ let path = get_css_path('style.css');
12088
12094
  func.utils.load_css_on_demand(path);
12089
12095
  };
12090
12096
 
12091
- const get_path = function (resource) {
12092
- if (_session.worker_type === 'Dev') {
12093
- return `../../plugins/${plugin_name}/${resource}`;
12094
- }
12095
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
12096
- };
12097
12097
  const _plugin = APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
12098
12098
  const index = await func.utils.get_plugin_resource(SESSION_ID, plugin_name, `${_plugin.manifest['index.mjs'].dist ? 'dist/' : ''}index.mjs`);
12099
12099
  const methods = index.methods;