forked from projects/fipamo
fix for weird css file deletion thing
This commit is contained in:
parent
b69559541a
commit
601fd6b1ab
2 changed files with 10 additions and 4 deletions
|
@ -140,9 +140,9 @@
|
|||
this[globalName] = mainExports;
|
||||
}
|
||||
}
|
||||
})({"hFE32":[function(require,module,exports) {
|
||||
})({"ge7IN":[function(require,module,exports) {
|
||||
var HMR_HOST = null;
|
||||
var HMR_PORT = 54262;
|
||||
var HMR_PORT = 59915;
|
||||
var HMR_SECURE = false;
|
||||
var HMR_ENV_HASH = "4a236f9275d0a351";
|
||||
module.bundle.HMR_BUNDLE_ID = "770375bf412ba982";
|
||||
|
@ -1764,7 +1764,11 @@ class PostEditor {
|
|||
e2.type == "drop" ? PostEditor.uploadFiles = e2.dataTransfer.files : PostEditor.uploadFiles = e2.target.files;
|
||||
for(var i = 0, f1; f1 = PostEditor.uploadFiles[i]; i++){
|
||||
// Only process image files.
|
||||
if (!f1.type.match("image.*")) continue;
|
||||
//console.log("FILE TYPE", f.type);
|
||||
if (!f1.type.match("image.*")) {
|
||||
alert("This is not an image. \nBad user. BAD.");
|
||||
continue;
|
||||
}
|
||||
var reader = new FileReader(); // Closure to capture the file information.
|
||||
reader.onload = (function(theFile) {
|
||||
return function(f) {
|
||||
|
@ -8353,6 +8357,6 @@ Sortable.mount(new AutoScrollPlugin());
|
|||
Sortable.mount(Remove, Revert);
|
||||
exports.default = Sortable;
|
||||
|
||||
},{"@parcel/transformer-js/src/esmodule-helpers.js":"ciiiV"}]},["hFE32","bEyX8"], "bEyX8", "parcelRequiredac0")
|
||||
},{"@parcel/transformer-js/src/esmodule-helpers.js":"ciiiV"}]},["ge7IN","bEyX8"], "bEyX8", "parcelRequiredac0")
|
||||
|
||||
//# sourceMappingURL=Start.js.map
|
||||
|
|
|
@ -228,7 +228,9 @@ export default class PostEditor {
|
|||
: (PostEditor.uploadFiles = e.target.files);
|
||||
for (var i = 0, f; (f = PostEditor.uploadFiles[i]); i++) {
|
||||
// Only process image files.
|
||||
//console.log("FILE TYPE", f.type);
|
||||
if (!f.type.match("image.*")) {
|
||||
alert("This is not an image. \nBad user. BAD.");
|
||||
continue;
|
||||
}
|
||||
var reader = new FileReader();
|
||||
|
|
Loading…
Reference in a new issue