@kizmann/nano-ui 0.7.22 → 0.7.24
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/package.json
CHANGED
|
@@ -110,6 +110,10 @@ export default {
|
|
|
110
110
|
let file = Obj.get(this.tempFile, 'name',
|
|
111
111
|
this.tempFile);
|
|
112
112
|
|
|
113
|
+
if ( Any.isEmpty(file) ) {
|
|
114
|
+
return fallback;
|
|
115
|
+
}
|
|
116
|
+
|
|
113
117
|
let extension = file.replace(/^.*?\.([^.?]+)(\?.*?)?$/,
|
|
114
118
|
'$1');
|
|
115
119
|
|
|
@@ -133,6 +137,10 @@ export default {
|
|
|
133
137
|
let file = Obj.get(this.tempThumb, 'name',
|
|
134
138
|
this.tempThumb);
|
|
135
139
|
|
|
140
|
+
if ( Any.isEmpty(file) ) {
|
|
141
|
+
return fallback;
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
let extension = file.replace(/^.*?\.([^.?]+)(\?.*?)?$/,
|
|
137
145
|
'$1');
|
|
138
146
|
|