@xuda.io/xuda-worker-bundle-min 1.3.962 → 1.3.963

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6022,7 +6022,12 @@ func.utils.load_js_on_demand = async function (js_src, type) {
6022
6022
 
6023
6023
  func.utils.load_css_on_demand = function (css_href) {
6024
6024
  function isCssLoaded(src) {
6025
- return document.querySelector('link[href="' + src + '"]') ? true : false;
6025
+ try {
6026
+ return document.querySelector('link[href="' + src + '"]') ? true : false;
6027
+ } catch (err) {
6028
+ console.warn(`load css ${css_href} failed`);
6029
+ return true;
6030
+ }
6026
6031
  }
6027
6032
 
6028
6033
  if (isCssLoaded(css_href)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.962",
3
+ "version": "1.3.963",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {