drag and drop view of any file to app window is prevented to open in app
This commit is contained in:
parent
c6d547fd86
commit
3aaea7d60f
|
@ -21,6 +21,18 @@ $(window).resize(function() {
|
|||
})
|
||||
|
||||
$(document).ready(function() {
|
||||
document.addEventListener('drop', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
});
|
||||
document.addEventListener('dragover', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
});
|
||||
webview.addEventListener('dragover', function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$('.loginbody').css('height',$(window).height())
|
||||
var mmstatus = ShepherdIPC({"command":"mmstatus"});
|
||||
if (mmstatus !== 'closed') {
|
||||
|
|
Loading…
Reference in New Issue