@xuda.io/runtime-bundle 1.0.747 → 1.0.749

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.
@@ -34043,16 +34043,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34043
34043
  };
34044
34044
 
34045
34045
  const load_css_style = function () {
34046
- let path = get_path('style.css');
34046
+ const get_css_path = function (resource) {
34047
+ if (_session.worker_type === 'Dev') {
34048
+ return `../../plugins/${plugin_name}/${resource}`;
34049
+ }
34050
+ return `https://${_session.domain}/plugins/${plugin_name}/${APP_OBJ[_session.app_id].app_plugins_purchased[plugin_name].manifest[resource].dist ? 'dist/' : ''}${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
34051
+ };
34052
+ let path = get_css_path('style.css');
34047
34053
  func.utils.load_css_on_demand(path);
34048
34054
  };
34049
34055
 
34050
- const get_path = function (resource) {
34051
- if (_session.worker_type === 'Dev') {
34052
- return `../../plugins/${plugin_name}/${resource}`;
34053
- }
34054
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
34055
- };
34056
34056
  const _plugin = APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
34057
34057
  const index = await func.utils.get_plugin_resource(SESSION_ID, plugin_name, `${_plugin.manifest['index.mjs'].dist ? 'dist/' : ''}index.mjs`);
34058
34058
  const methods = index.methods;