mirror of
https://github.com/d07RiV/diabloweb.git
synced 2026-06-03 21:41:38 +00:00
add mpq warning
This commit is contained in:
@@ -249,6 +249,10 @@ class App extends React.Component {
|
||||
this.fs.then(fs => fs.upload(file)).then(console.log(`Updated ${file.name}`));
|
||||
return;
|
||||
}
|
||||
if (file && !file.name.match(/\.mpq$/i)) {
|
||||
window.alert('Please select an MPQ file. If you downloaded the installer from GoG, you will need to install it on PC and use the MPQ file from the installation folder.');
|
||||
return;
|
||||
}
|
||||
|
||||
document.removeEventListener("drop", this.onDrop, true);
|
||||
document.removeEventListener("dragover", this.onDragOver, true);
|
||||
|
||||
Reference in New Issue
Block a user