@jx3box/jx3box-editor 2.2.43 → 2.2.44

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.
package/assets/js/a.js CHANGED
@@ -90,7 +90,7 @@ export default function formatLink(html, whitelist = ["*.jx3box.com"], strict =
90
90
 
91
91
  $("a[href]").each((_, el) => {
92
92
  const a = $(el);
93
- const hrefRaw = a.attr("href") ?? "";
93
+ const hrefRaw = a.attr("href") || "";
94
94
  const href = String(hrefRaw).trim();
95
95
  if (!href) return;
96
96
 
@@ -81,7 +81,7 @@ export default function iframeFilter(html, whitelist, options = {}) {
81
81
 
82
82
  $("iframe").each((_, el) => {
83
83
  const iframe = $(el);
84
- const srcRaw = iframe.attr("src") ?? "";
84
+ const srcRaw = iframe.attr("src") || "";
85
85
  const src = String(srcRaw).trim();
86
86
  if (!src) return;
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.2.43",
3
+ "version": "2.2.44",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {