mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
clean up all unnecessary files
This commit is contained in:
@@ -317,8 +317,13 @@ export default {
|
||||
return path.slice(-3);
|
||||
},
|
||||
isImage(path) {
|
||||
var ext = this.getExtension(path);
|
||||
return ext === 'jpg' || ext === 'jpeg' || ext === 'bmp' || ext === 'png';
|
||||
if(path != null){
|
||||
var ext = this.getExtension(path);
|
||||
return ext === 'jpg' || ext === 'jpeg' || ext === 'bmp' || ext === 'png';
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
},
|
||||
getURL(path) {
|
||||
var getUrl = window.location;
|
||||
|
||||
Reference in New Issue
Block a user