@aiyiran/myclaw 1.1.17 → 1.1.18
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.
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
// ═══ 预览弹框 ═══
|
|
504
|
-
var IMAGE_TYPES = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'webp', 'bmp', 'avif', 'ico'];
|
|
504
|
+
var IMAGE_TYPES = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'webp', 'bmp', 'avif', 'ico', 'image'];
|
|
505
505
|
|
|
506
506
|
function isImageAsset(asset) {
|
|
507
507
|
return asset.type && IMAGE_TYPES.indexOf(asset.type.toLowerCase()) !== -1;
|
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
coverDefaultOpt.value = '';
|
|
775
775
|
coverDefaultOpt.textContent = '\u4E0D\u9009\u62E9';
|
|
776
776
|
coverSelect.appendChild(coverDefaultOpt);
|
|
777
|
-
var imageTypes = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'webp', 'bmp'];
|
|
777
|
+
var imageTypes = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'webp', 'bmp', 'image'];
|
|
778
778
|
var imageAssets = (cachedData.assets || []).filter(function (a) { return a.type && imageTypes.indexOf(a.type.toLowerCase()) !== -1; });
|
|
779
779
|
imageAssets.forEach(function (asset) {
|
|
780
780
|
var opt = document.createElement('option');
|